Initialize all of the data structure
authoraland <aland>
Sun, 13 Apr 2008 08:07:48 +0000 (08:07 +0000)
committeraland <aland>
Sun, 13 Apr 2008 08:07:48 +0000 (08:07 +0000)
src/main/realms.c

index f8898dd..6004949 100644 (file)
@@ -1584,6 +1584,7 @@ home_server *home_server_find(fr_ipaddr_t *ipaddr, int port)
 {
        home_server myhome;
 
+       memset(&myhome, 0, sizeof(myhome));
        myhome.ipaddr = *ipaddr;
        myhome.port = port;
        myhome.server = NULL;   /* we're not called for internal proxying */