(krb5_locate_kpasswd): fixed memory trashing caused by incorrect pointer arithmetic...
authorScott McGuire <smcguire@mit.edu>
Fri, 4 Feb 2000 22:41:21 +0000 (22:41 +0000)
committerScott McGuire <smcguire@mit.edu>
Fri, 4 Feb 2000 22:41:21 +0000 (22:41 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11997 dc483132-0cff-0310-8789-dd5450dbe970

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

index a990ab26eabe9fe05b904e3950c6a8ed3614ce48..32245f8c50ccc1b12d216d5c4629aa3cbd854535 100644 (file)
@@ -1,3 +1,9 @@
+2000-02-04  Scott McGuire  <smcguire@mit.edu>
+
+    * changepw.c (krb5_locate_kpasswd): fixed memory trashing
+       caused by incorrect pointer arithmetic when assigning
+       DEFAULT_KPASSWD_PORT in non-DNS code.
+   
 1999-12-03  Danilo Almeida  <dalmeida@mit.edu>
 
        * changepw.c: Define ETIMEDOUT for Windows.
index 84dcfc5e1c8c1c1c700940e5b9d3602ccd441de8..f6bf3a9205a350391f56b82cec42aa3cf276d7a8 100644 (file)
@@ -82,7 +82,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);
             }
         }