From bb20c8786d400c90ca959ebb0fdf7c13bd7ddc48 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 14 Jun 2012 13:13:11 +0200 Subject: Robustness fix when gssproxy is started w/o config file. Guenther --- proxy/src/gp_socket.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'proxy/src') 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); -- cgit