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 | |
parent | bus: only accept kdbus creds if they are valid (diff) | |
download | systemd-ae98841e63a2624700db84ba44217f768b090d99.tar.xz systemd-ae98841e63a2624700db84ba44217f768b090d99.zip |
util: don't accept an empty peer label as valid
Diffstat (limited to 'src')
-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; } |