Jelajahi Sumber

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

Ovidiu Sas 11 tahun lalu
induk
melakukan
10115f8863
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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) {
 				if (db_delete_ucontact(t) < 0) {
 					LM_ERR("failed to delete contact from the database"
 					LM_ERR("failed to delete contact from the database"
 							" (aor: %.*s)\n",
 							" (aor: %.*s)\n",
-							ptr->aor->len, ZSW(ptr->aor->s));
+							t->aor->len, ZSW(t->aor->s));
 				}
 				}
 			}
 			}