浏览代码

usrloc: fix crash while printing error log
- fix a copy/paste error that lead to a NULL pointer

Ovidiu Sas 12 年之前
父节点
当前提交
10115f8863
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/usrloc/urecord.c

+ 1 - 1
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));
 				}
 			}