aboutsummaryrefslogtreecommitdiffstats
path: root/common/sysutils.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--common/sysutils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/sysutils.c b/common/sysutils.c
index ab2012c45..ab3e1d6d5 100644
--- a/common/sysutils.c
+++ b/common/sysutils.c
@@ -987,6 +987,9 @@ gnupg_inotify_watch_socket (int *r_fd, const char *socket_name)
*r_fd = -1;
+ if (!socket_name)
+ return gpg_error (GPG_ERR_EINVAL);
+
fname = xtrystrdup (socket_name);
if (!fname)
return my_error_from_syserror ();