diff options
-rw-r--r-- | channels/chan_sip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index fd153f899..d4713f488 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -16882,6 +16882,7 @@ static int reload_config(enum channelreloadreason reason) sipsock = socket(AF_INET, SOCK_DGRAM, 0); if (sipsock < 0) { ast_log(LOG_WARNING, "Unable to create SIP socket: %s\n", strerror(errno)); + return -1; } else { /* Allow SIP clients on the same host to access us: */ const int reuseFlag = 1; |