diff options
author | Michal Sekletar <msekleta@redhat.com> | 2012-12-13 14:59:40 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-12-17 11:41:31 +0100 |
commit | 8520cfa5845274f4c0312a6c3f3313195e8a5119 (patch) | |
tree | f2cc514a8012811268c5d0019b9326aff2c3c397 | |
parent | c9c7aef24f9750bbd51d2c13beff66473d96bf3c (diff) |
socket-util: added check of return value
-rw-r--r-- | src/shared/socket-util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/socket-util.c b/src/shared/socket-util.c index 49ea75880d..42ea545917 100644 --- a/src/shared/socket-util.c +++ b/src/shared/socket-util.c @@ -369,6 +369,8 @@ int socket_address_print(const SocketAddress *a, char **p) { if (r < 0) return r; r = asprintf(p, "%s %u", sfamily, a->sockaddr.nl.nl_groups); + if (r < 0) + return -ENOMEM; return 0; } |