diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-24 16:21:59 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-24 16:21:59 +0100 |
commit | ae98841e63a2624700db84ba44217f768b090d99 (patch) | |
tree | c69bf713e127e8f2fe6aa47018b9f25ced13d518 /src/shared | |
parent | 2dc9970bed3cee69e6746b110a649a9285dd6369 (diff) |
util: don't accept an empty peer label as valid
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/util.c | 5 |
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; } |