diff options
Diffstat (limited to 'ospfclient')
-rw-r--r-- | ospfclient/ospf_apiclient.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ospfclient/ospf_apiclient.c b/ospfclient/ospf_apiclient.c index 64b83123..ed7ca947 100644 --- a/ospfclient/ospf_apiclient.c +++ b/ospfclient/ospf_apiclient.c @@ -259,8 +259,7 @@ ospf_apiclient_connect (char *host, int syncport) close (async_server_sock); /* Create new client-side instance */ - new = XMALLOC (MTYPE_OSPF_APICLIENT, sizeof (struct ospf_apiclient)); - memset (new, 0, sizeof (struct ospf_apiclient)); + new = XCALLOC (MTYPE_OSPF_APICLIENT, sizeof (struct ospf_apiclient)); /* Initialize socket descriptors for sync and async channels */ new->fd_sync = fd1; |