projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7dc391
)
reverse args to memset to be correct
author
John Kohl
<jtkohl@mit.edu>
Fri, 4 May 1990 16:53:07 +0000
(16:53 +0000)
committer
John Kohl
<jtkohl@mit.edu>
Fri, 4 May 1990 16:53:07 +0000
(16:53 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@737
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/os/locate_kdc.c
patch
|
blob
|
history
diff --git
a/src/lib/krb5/os/locate_kdc.c
b/src/lib/krb5/os/locate_kdc.c
index ca039199a54f3e67885dc31d6298dc74943ebd05..3191cca0150572c0dd4911ca7409c117afef41dd 100644
(file)
--- a/
src/lib/krb5/os/locate_kdc.c
+++ b/
src/lib/krb5/os/locate_kdc.c
@@
-86,7
+86,7
@@
krb5_locate_kdc(realm, addr_pp, naddrs)
if (udpport) /* must have gotten a port # */
for (j=0; hp->h_addr_list[j]; j++) {
sin_p = (struct sockaddr_in *) &addr_p[out++];
- memset ((char *)sin_p,
sizeof(struct sockaddr), 0
);
+ memset ((char *)sin_p,
0, sizeof(struct sockaddr)
);
sin_p->sin_family = hp->h_addrtype;
sin_p->sin_port = udpport;
memcpy((char *)&sin_p->sin_addr,