Module: sip-router
Branch: 4.0
Commit: 869352bab583266c47d80ede6360ecec3f993cde
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=869352bab583266c47d80ede6360ecec3f993cde

Author: Ovidiu Sas <[email protected]>
Committer: Victor Seva <[email protected]>
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

(cherry picked from commit 10115f88637d1371a8ddeb5fe9c36c31ada49fc4)

---

 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 75ddd1a..ff89b15 100644
--- a/modules/usrloc/urecord.c
+++ b/modules/usrloc/urecord.c
@@ -335,7 +335,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));
                                }
                        }
 


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to