From b7b3cd463a9df9f99d8a2d0d5982f84f730f12e2 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 4 May 1990 16:53:07 +0000 Subject: [PATCH] reverse args to memset to be correct git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@737 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/locate_kdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/krb5/os/locate_kdc.c b/src/lib/krb5/os/locate_kdc.c index ca039199a..3191cca01 100644 --- 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, -- 2.26.2