[OpenAFS-devel] security fix in afs_dynamic_auth (AIX 5)
Hartmut Reuter
reuter@rzg.mpg.de
Mon, 26 Apr 2004 09:35:12 +0200
RCS file: /afs/ipp/CVS/openmrafs/openafs/src/tsm41/aix41_auth.c,v
retrieving revision 1.2
diff -u -r1.2 aix41_auth.c
--- aix41_auth.c 18 Nov 2003 15:31:32 -0000 1.2
+++ aix41_auth.c 23 Apr 2004 11:56:06 -0000
@@ -136,11 +136,12 @@
pwd.pw_gecos = &gecos;
pwd.pw_dir = &dir;
pwd.pw_shell = &shell;
- break;
+ endpwent();
+ return &pwd;
}
}
endpwent();
- return &pwd;
+ return (struct passwd *)0;
}
#else
int afs_getpwnam(int id)
-----------------------------------------------------------------
Hartmut Reuter e-mail reuter@rzg.mpg.de
phone +49-89-3299-1328
RZG (Rechenzentrum Garching) fax +49-89-3299-1301
Computing Center of the Max-Planck-Gesellschaft (MPG) and the
Institut fuer Plasmaphysik (IPP)
-----------------------------------------------------------------