summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-24 16:21:59 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-24 16:21:59 +0100
commitae98841e63a2624700db84ba44217f768b090d99 (patch)
treec69bf713e127e8f2fe6aa47018b9f25ced13d518 /src
parentbus: only accept kdbus creds if they are valid (diff)
downloadsystemd-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.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;
}