reverse args to memset to be correct
authorJohn Kohl <jtkohl@mit.edu>
Fri, 4 May 1990 16:53:07 +0000 (16:53 +0000)
committerJohn 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

index ca039199a54f3e67885dc31d6298dc74943ebd05..3191cca0150572c0dd4911ca7409c117afef41dd 100644 (file)
@@ -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,