summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/shared/util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index 6b6722c278..f491708f4f 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -6172,6 +6172,11 @@ int getpeersec(int fd, char **ret) {
}
}
+ if (isempty(s)) {
+ free(s);
+ return -ENOTSUP;
+ }
+
*ret = s;
return 0;
}