changepw.c (krb5_locate_kpasswd): fixed memory trashing caused by incorrect pointer...
authorScott McGuire <smcguire@mit.edu>
Mon, 7 Feb 2000 21:36:32 +0000 (21:36 +0000)
committerScott McGuire <smcguire@mit.edu>
Mon, 7 Feb 2000 21:36:32 +0000 (21:36 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12019 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/ChangeLog
src/lib/krb5/os/changepw.c

index 32245f8c50ccc1b12d216d5c4629aa3cbd854535..b50565dafde000ad2a7e4fc6234b0233d09ebf5e 100644 (file)
@@ -1,3 +1,9 @@
+2000-02-07  Scott McGuire  <smcguire@mit.edu>
+
+    * changepw.c (krb5_locate_kpasswd): fixed memory trashing
+       caused by incorrect pointer arithmetic when assigning
+       DEFAULT_KPASSWD_PORT in DNS code also.
+
 2000-02-04  Scott McGuire  <smcguire@mit.edu>
 
     * changepw.c (krb5_locate_kpasswd): fixed memory trashing
index f6bf3a9205a350391f56b82cec42aa3cf276d7a8..6ed95bce7fd606fcadf45e1244fb3c217842e7c1 100644 (file)
@@ -103,7 +103,7 @@ krb5_locate_kpasswd(context, realm, addr_pp, naddrs, master_index, nmasters)
                     /* success with admin_server but now we need to change the port */
                     /* number to use DEFAULT_KPASSWD_PORT.                          */
                     for ( i=0;i<*naddrs;i++ ) {
-                        struct sockaddr_in *sin = (struct sockaddr_in *) &(*addr_pp)[i];
+                        struct sockaddr_in *sin = (struct sockaddr_in *) addr_pp[i];
                         sin->sin_port = htons(DEFAULT_KPASSWD_PORT);
                     }
                 }