Module: kamailio
Branch: master
Commit: cd6313a4f2b816df38c174e6b68c1a1bd3fc1f23
URL:
https://github.com/kamailio/kamailio/commit/cd6313a4f2b816df38c174e6b68c1a1…
Author: Carsten Bock <carsten(a)ng-voice.com>
Committer: Carsten Bock <carsten(a)ng-voice.com>
Date: 2017-01-12T14:44:03+01:00
IMS-USRLOC-PCSCF: Set contact to NULL for safety, if not found
---
Modified: src/modules/ims_usrloc_pcscf/udomain.c
---
Diff:
https://github.com/kamailio/kamailio/commit/cd6313a4f2b816df38c174e6b68c1a1…
Patch:
https://github.com/kamailio/kamailio/commit/cd6313a4f2b816df38c174e6b68c1a1…
---
diff --git a/src/modules/ims_usrloc_pcscf/udomain.c
b/src/modules/ims_usrloc_pcscf/udomain.c
index 2fdd648..8720c32 100644
--- a/src/modules/ims_usrloc_pcscf/udomain.c
+++ b/src/modules/ims_usrloc_pcscf/udomain.c
@@ -567,6 +567,8 @@ int get_pcontact(udomain_t* _d, pcontact_info_t* contact_info, struct
pcontact**
}
LM_DBG("contact not found in memory\n");
+ // Default: Not found.
+ *_c = NULL;
return 1; /* Nothing found */
}