]> git.michaelhowe.org Git - packages/o/openafs.git/commit
STABLE14-aklog-segfault-fix-20050718
authorKarl E. Kelley <kekelley@iastate.edu>
Tue, 19 Jul 2005 03:51:53 +0000 (03:51 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 19 Jul 2005 03:51:53 +0000 (03:51 +0000)
commit6a9390b5cc1a8629c7ef375858f1866c5b14cdf4
treedfa0646bf4048074e5fb20ee064b68d5cb5123d0
parent522809c75a958bfee7f9acdde49a36b6622d6af9
STABLE14-aklog-segfault-fix-20050718

FIXES 20198

I have built openafs 1.3.85 on an emt64 platform on RedHat Enterprise 4,
and found that the aklog supplied with 1.3.85 (not the one in the afs-krb5
conversion kit) consistently segfaults when aklog is called with the
"-path ...." parm. It works properly when called with no parms.

I traced this down to the call to the readlink() call in aklog_main.c,
when the params structure references were removed the nesting was
changed on an if statement that changed the logic and allowed the
do while loop to loop past the end and de-reference a NULL pointer.

(cherry picked from commit ef934e388cdc09e9afe7234aedad318618207104)
src/aklog/aklog_main.c