Initialize hash_iov, in case of premature error exit
authorKen Raeburn <raeburn@mit.edu>
Thu, 31 Dec 2009 03:37:37 +0000 (03:37 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 31 Dec 2009 03:37:37 +0000 (03:37 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23551 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/krb/checksum/confounder.c

index 6429a195f3359365d9b71d355f2e903e5cf55d0e..d74ad380fe46eae0c44e0ed6762c85bf2688c966 100644 (file)
@@ -115,7 +115,7 @@ krb5_error_code krb5int_confounder_verify(const struct krb5_cksumtypes *ctp,
     unsigned char *plaintext = NULL;
     krb5_key xorkey = NULL;
     krb5_data computed = empty_data();
-    krb5_crypto_iov *hash_iov, iov;
+    krb5_crypto_iov *hash_iov = NULL, iov;
     size_t blocksize = ctp->enc->block_size, hashsize = ctp->hash->hashsize;
 
     plaintext = k5alloc(input->length, &ret);