[sr-dev] [tracker] Task opened: error updating UAC register record
sip-router
bugtracker at sip-router.org
Wed Oct 22 15:02:56 CEST 2014
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Savolainen Dmitri (snen)
Attached to Project - sip-router
Summary - error updating UAC register record
Task Type - Bug Report
Category - Module
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Medium
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - can’t update existing UAC register record
<code>
[root at sw4 sbin]# ./kamcmd uac.reg_refresh s:000105480
error: 500 - Failed to refresh record - check log messages
</code>
reg->h_user is not initialized berfore using in “reg_ht_update_password“. possible patch is
<code>
diff --git a/modules/uac/uac_reg.c b/modules/uac/uac_reg.c
index 9b2abef..694e8fc 100644
--- a/modules/uac/uac_reg.c
+++ b/modules/uac/uac_reg.c
@@ -543,7 +543,8 @@ int reg_ht_update_password(reg_uac_t *reg)
return -1;
}
- slot = reg_get_entry(reg->h_user, _reg_htable->htsize);
+ unsigned int hash = reg_compute_hash(®->l_username);
+ slot = reg_get_entry(hash, _reg_htable->htsize);
lock_get(&_reg_htable->entries[slot].lock);
ri = _reg_htable->entries[slot].byuser;
while(ri) {
</code>
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=485
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the sr-dev
mailing list