diff options
author | Günther Deschner <gdeschner@redhat.com> | 2012-06-14 13:13:11 +0200 |
---|---|---|
committer | Günther Deschner <gdeschner@redhat.com> | 2012-06-26 14:44:45 +0200 |
commit | bb20c8786d400c90ca959ebb0fdf7c13bd7ddc48 (patch) | |
tree | 9a7eaa32ae7f56681f6c2cb834e701401e92a10b /proxy/src/gp_socket.c | |
parent | 6bcd3444c367c1af8b44db85566820f899e0c843 (diff) | |
download | gss-proxy-bb20c8786d400c90ca959ebb0fdf7c13bd7ddc48.tar.gz gss-proxy-bb20c8786d400c90ca959ebb0fdf7c13bd7ddc48.tar.xz gss-proxy-bb20c8786d400c90ca959ebb0fdf7c13bd7ddc48.zip |
Robustness fix when gssproxy is started w/o config file.
Guenther
Diffstat (limited to 'proxy/src/gp_socket.c')
-rw-r--r-- | proxy/src/gp_socket.c | 6 |
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); |