diff options
Diffstat (limited to 'src/libmsc/smpp_smsc.c')
-rw-r--r-- | src/libmsc/smpp_smsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmsc/smpp_smsc.c b/src/libmsc/smpp_smsc.c index 34b93f88f..f9fef8bc2 100644 --- a/src/libmsc/smpp_smsc.c +++ b/src/libmsc/smpp_smsc.c @@ -974,7 +974,7 @@ int smpp_smsc_conf(struct smsc *smsc, const char *bind_addr, uint16_t port) talloc_free((void*)smsc->bind_addr); smsc->bind_addr = NULL; if (bind_addr) { - smsc->bind_addr = talloc_strdup(smsc, bind_addr); + smsc->bind_addr = bind_addr ? talloc_strdup(smsc, bind_addr) : NULL; if (!smsc->bind_addr) return -ENOMEM; } |