From ae98841e63a2624700db84ba44217f768b090d99 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 24 Dec 2013 16:21:59 +0100 Subject: util: don't accept an empty peer label as valid --- src/shared/util.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/shared') 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; } -- cgit v1.2.3-54-g00ecf