From 2359aa985d5d853fb06cf1499bc6e1b0fe0173d4 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Tue, 24 Feb 2004 13:17:30 +1100 Subject: - (dtucker) [uidswap.c] Minor KNF. ok djm@ --- ChangeLog | 3 ++- uidswap.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1614e9e86..cf719e831 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,7 @@ - (djm) [groupaccess.c uidswap.c] Bug #787: Size group arrays at runtime using sysconf() if available Based on patches from holger AT van-lengerich.de and openssh_bugzilla AT hockin.org + - (dtucker) [uidswap.c] Minor KNF. ok djm@ 20040223 - (dtucker) [session.c] Bug #789: Only make setcred call for !privsep in the @@ -1922,4 +1923,4 @@ - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. Report from murple@murple.net, diagnosis from dtucker@zip.com.au -$Id: ChangeLog,v 1.3250 2004/02/24 02:05:11 djm Exp $ +$Id: ChangeLog,v 1.3251 2004/02/24 02:17:30 dtucker Exp $ diff --git a/uidswap.c b/uidswap.c index e652161af..44c4cb626 100644 --- a/uidswap.c +++ b/uidswap.c @@ -79,7 +79,7 @@ temporarily_use_uid(struct passwd *pw) if (getgroups(saved_egroupslen, saved_egroups) < 0) fatal("getgroups: %.100s", strerror(errno)); } else { /* saved_egroupslen == 0 */ - if (saved_egroups) + if (saved_egroups != NULL) xfree(saved_egroups); } -- cgit v1.2.3