diff options
author | Renato Botelho <renato@netgate.com> | 2016-08-08 13:18:31 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-08-08 13:18:31 -0300 |
commit | c481775c0ef4d4d98dd1d53711a00b2e101533d2 (patch) | |
tree | 9590dc3802a31ee0e5931f40e389abe8e2785b78 /lib/libc | |
parent | 4008e6a2e9bc1ee9983a4cf7d23093d2015026d6 (diff) | |
parent | 89512a096a7717f8c3f2ca6889e0c6b1a1d50b32 (diff) | |
download | FreeBSD-src-c481775c0ef4d4d98dd1d53711a00b2e101533d2.zip FreeBSD-src-c481775c0ef4d4d98dd1d53711a00b2e101533d2.tar.gz |
Merge remote-tracking branch 'origin/stable/10' into devel
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/getnetgrent.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/gen/getnetgrent.c b/lib/libc/gen/getnetgrent.c index 8aa75e2..a8cc4c9 100644 --- a/lib/libc/gen/getnetgrent.c +++ b/lib/libc/gen/getnetgrent.c @@ -559,6 +559,10 @@ read_for_group(const char *group) continue; } } + if (strlen(result) == 0) { + free(result); + return (NULL); + } snprintf(line, LINSIZ, "%s %s", group, result); free(result); } |