Initialize ihash_iov in case fall through to cleanup handler and try
authorEzra Peisach <epeisach@mit.edu>
Sun, 6 Dec 2009 22:07:02 +0000 (22:07 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sun, 6 Dec 2009 22:07:02 +0000 (22:07 +0000)
to free garbarge.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23453 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/builtin/hmac.c

index 19ed2ef9b293e4e51b2b4454d1a6d14a1372ba09..3cb4146eb25856ad3ddae378714d6b3c369acd38 100644 (file)
@@ -56,7 +56,7 @@ krb5int_hmac_keyblock(const struct krb5_hash_provider *hash,
 {
     unsigned char *xorkey = NULL, *ihash = NULL;
     unsigned int i;
-    krb5_crypto_iov *ihash_iov, ohash_iov[2];
+    krb5_crypto_iov *ihash_iov = NULL, ohash_iov[2];
     krb5_data hashout;
     krb5_error_code ret;