[2423] in Kerberos
V5 lib/krb/sendauth.5 needs to initialize error pointer
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Thu Dec 3 19:03:46 1992
Date: 3 Dec 1992 23:33:13 GMT
From: jik@Athena.MIT.EDU (Jonathan I. Kamens)
To: kerberos@shelby.Stanford.EDU
This is necessary so that if it returns an error code but does not put an error
string into the error pointer, the application calling it will not try to use
that pointer if there's garbage in it when the function is called.
*** 5.3 1992/08/18 23:21:22
--- lib/krb/sendauth.c 1992/12/03 22:30:29
***************
*** 80,85 ****
--- 80,88 ----
krb5_data inbuf, outbuf;
int len;
+ if (error)
+ *error = 0;
+
/*
* First, send over the length of the sendauth version string;
* then, we send over the sendauth version. Next, we send
--
Jonathan Kamens jik@MIT.Edu
MIT Information Systems/Athena Moderator, news.answers