]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
auditlog-sublist-fix-20061012
authorDerrick Brashear <shadow@dementia.org>
Thu, 12 Oct 2006 05:20:59 +0000 (05:20 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 12 Oct 2006 05:20:59 +0000 (05:20 +0000)
FIXES 35559

update so we don't botch the va_list child

src/audit/audit.c

index e310bad553d397f02abffa91e0ab4eb5834c1621..c4916f70e4eaa2288ee0224a4ba0c3b3afa68410 100644 (file)
@@ -98,7 +98,7 @@ audmakebuf(char *audEvent, va_list vaList)
            bufferPtr += sizeof(vaLong);
            break;
        case AUD_LST:           /* Ptr to another list */
-           va_copy(vaLst, vaList);
+           va_copy(vaLst, va_arg(vaList, va_list));
            audmakebuf(audEvent, vaLst);
            va_end(vaLst);
            break;
@@ -224,7 +224,7 @@ printbuf(FILE *out, int rec, char *audEvent, afs_int32 errCode, va_list vaList)
            fprintf(out, "LONG %d ", vaLong);
            break;
        case AUD_LST:           /* Ptr to another list */
-           va_copy(vaLst, vaList);
+           va_copy(vaLst, va_arg(vaList, va_list));
            printbuf(out, 1, "VALST", 0, vaLst);
            va_end(vaLst);
            break;