From: Greg Hudson Date: Tue, 22 Jun 2010 12:52:03 +0000 (+0000) Subject: In kprop's sockaddr2krbaddr(), fill in addr.magic to avoid copying X-Git-Tag: krb5-1.9-beta1~184 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0c683941644a468ad53291cd83b0d23f5c6ad9c7;p=krb5.git In kprop's sockaddr2krbaddr(), fill in addr.magic to avoid copying around uninitialized values. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24143 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/slave/kprop_sock.c b/src/slave/kprop_sock.c index 54479c9a4..480f1ef47 100644 --- a/src/slave/kprop_sock.c +++ b/src/slave/kprop_sock.c @@ -46,6 +46,7 @@ sockaddr2krbaddr(krb5_context context, int family, struct sockaddr *sa, { krb5_address addr; + addr.magic = KV5M_ADDRESS; if (family == AF_INET) { struct sockaddr_in *sa4 = (struct sockaddr_in *) sa; addr.addrtype = ADDRTYPE_INET;