diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index fd153f899a043ba9178fda184110c4506ae0736e..d4713f488b0b88c4392a60b5a4fb28a19f23ece3 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;