+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.
/* 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);
}
}