[sr-dev] git:master: uac: set hash ids for record refresh command
Daniel-Constantin Mierla
miconda at gmail.com
Wed Oct 22 19:03:00 CEST 2014
Module: sip-router
Branch: master
Commit: 148c03b35ae3489910a02ba530441862b805be65
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=148c03b35ae3489910a02ba530441862b805be65
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: Wed Oct 22 19:01:32 2014 +0200
uac: set hash ids for record refresh command
- reported by Savolainen Dmitri, FS#485
---
modules/uac/uac_reg.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/uac/uac_reg.c b/modules/uac/uac_reg.c
index 9b2abef..45359fd 100644
--- a/modules/uac/uac_reg.c
+++ b/modules/uac/uac_reg.c
@@ -1251,6 +1251,8 @@ int uac_reg_db_refresh(str *pl_uuid)
reg_db_set_attr(auth_password, 7);
reg_db_set_attr(auth_proxy, 8);
reg.expires = (unsigned int)RES_ROWS(db_res)[i].values[9].val.int_val;
+ reg.h_uuid = reg_compute_hash(®.l_uuid);
+ reg.h_user = reg_compute_hash(®.l_username);
lock_get(_reg_htable_gc_lock);
if(reg_ht_get_byuuid(pl_uuid)!=NULL)
More information about the sr-dev
mailing list