diff options
author | Pavan Deolasee | 2015-08-13 06:18:15 +0000 |
---|---|---|
committer | Pavan Deolasee | 2015-08-13 06:18:15 +0000 |
commit | d0ccee9a81e83af2612c37e3928f9e776302a0db (patch) | |
tree | f35f56aa2896c1612cc068745386a2c28c11681d | |
parent | 9c0c3efa5af24557e7d815b7458555c3d210fc8f (diff) |
Avoid referencing a NULL pointer when GTM fails to create a socket
-rw-r--r-- | src/gtm/main/main.c | 2 |
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; |