[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bugfix] uninitialized pointer dereference in rd_cred.c



Noticed in  a case where I  should have gotten ``Read  forwarded creds
failed: Incorrect net address,'' but instead a got a segfault.

--- lib/krb5/rd_cred.c.orig	Tue Apr 17 16:03:58 2001
+++ lib/krb5/rd_cred.c	Tue Apr 17 16:05:16 2001
@@ -50,6 +50,7 @@
     krb5_crypto crypto;
     int i;
 
+    *ret_creds = NULL;
     ret = decode_KRB_CRED(in_data->data, in_data->length, 
 			  &cred, &len);
     if(ret)

Cheers,
-- 
Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org