error codes. Check for malloc failure allocating sendStream.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15202
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-02-25 Ken Raeburn <raeburn@mit.edu>
+
+ * change_password.c (krb_change_password): Use int, not KRB_INT32,
+ for krb4 error codes. Check for malloc failure allocating
+ sendStream.
+
2003-02-12 Tom Yu <tlyu@mit.edu>
* Makefile.in: Update dependencies.
krb_change_password(char *principal, char *instance, char *realm,
char *oldPassword, char *newPassword)
{
- KRB_INT32 err;
+ int err;
des_cblock key;
KRB_UINT32 tempKey;
size_t sendSize;
/* possible problem with vts_long on a non-multiple of four boundary */
sendSize = 0; /* start of our output packet */
sendStream = malloc(1); /* to make it reallocable */
+ if (sendStream == NULL)
+ goto disconnect;
sendStream[sendSize++] = CHANGE_PW;
/* change key to stream */