Module: sip-router
Branch: master
Commit: 10115f88637d1371a8ddeb5fe9c36c31ada49fc4
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=10115f8…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Fri Nov 15 09:08:03 2013 -0500
usrloc: fix crash while printing error log
- fix a copy/paste error that lead to a NULL pointer
---
modules/usrloc/urecord.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/usrloc/urecord.c b/modules/usrloc/urecord.c
index 6423dd6..b9722d9 100644
--- a/modules/usrloc/urecord.c
+++ b/modules/usrloc/urecord.c
@@ -365,7 +365,7 @@ static inline void wb_timer(urecord_t* _r)
if (db_delete_ucontact(t) < 0) {
LM_ERR("failed to delete contact from the database"
" (aor: %.*s)\n",
- ptr->aor->len, ZSW(ptr->aor->s));
+ t->aor->len, ZSW(t->aor->s));
}
}