summaryrefslogtreecommitdiffstats
path: root/proxy/src
diff options
context:
space:
mode:
Diffstat (limited to 'proxy/src')
-rw-r--r--proxy/src/gp_socket.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/proxy/src/gp_socket.c b/proxy/src/gp_socket.c
index a782564..b0829ad 100644
--- a/proxy/src/gp_socket.c
+++ b/proxy/src/gp_socket.c
@@ -115,6 +115,12 @@ int init_unix_socket(const char *file_name)
int ret = 0;
int fd = -1;
+ if (!file_name) {
+ ret = EINVAL;
+ GPDEBUG("Failed to init socket, no filename given\n");
+ goto done;
+ }
+
/* can't bind if an old socket is around */
unlink(file_name);