summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Deolasee2015-08-13 06:18:15 +0000
committerPavan Deolasee2015-08-13 06:18:15 +0000
commitd0ccee9a81e83af2612c37e3928f9e776302a0db (patch)
treef35f56aa2896c1612cc068745386a2c28c11681d
parent9c0c3efa5af24557e7d815b7458555c3d210fc8f (diff)
Avoid referencing a NULL pointer when GTM fails to create a socket
-rw-r--r--src/gtm/main/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gtm/main/main.c b/src/gtm/main/main.c
index 73ed02662a..c55a57363e 100644
--- a/src/gtm/main/main.c
+++ b/src/gtm/main/main.c
@@ -825,7 +825,7 @@ ConnCreate(int serverFd)
if (port->sock >= 0)
StreamClose(port->sock);
ConnFree(port);
- port = NULL;
+ return NULL;
}
port->conn_id = InvalidGTMProxyConnID;