DEVEL15-klog-krb5-avoid-freeing-garbage-20090603
authorDouglas Engert <deengert@anl.gov>
Wed, 3 Jun 2009 21:58:19 +0000 (21:58 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 3 Jun 2009 21:58:19 +0000 (21:58 +0000)
LICENSE IPL10

avoid freeing garbage due to an uninitialized variable

(cherry picked from commit edfb415915bff06c055f58867695cbb37df626e1)

src/aklog/klog.c

index dc0b817..2caeed1 100644 (file)
@@ -356,7 +356,7 @@ CommandProc(struct cmd_syndesc *as, char *arock)
     krb5_creds incred[1], mcred[1], *outcred = 0, *afscred;
     krb5_ccache cc = 0;
     krb5_get_init_creds_opt gic_opts[1];
-    char *tofree, *outname;
+    char *tofree = NULL, *outname;
     int code;
     char *what;
     int i, dosetpag, evil, noprdb, id;