X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=secnet.git;a=blobdiff_plain;f=netlink.c;h=75763cf520719fc1bfc2934da725344121c35aa0;hp=e180b1dfad95fb53f4f46e61516ae83440873538;hb=94ca562bb14422940ff1986ce8dfca87c222cb59;hpb=b7886fd46ab05c97b8a072e497903622bd1d5290 diff --git a/netlink.c b/netlink.c index e180b1d..75763cf 100644 --- a/netlink.c +++ b/netlink.c @@ -1039,8 +1039,7 @@ static void netlink_phase_hook(void *sst, uint32_t new_phase) /* All the networks serviced by the various tunnels should now * have been registered. We build a routing table by sorting the * clients by priority. */ - st->routes=safe_malloc_ary(sizeof(*st->routes),st->n_clients, - "netlink_phase_hook"); + NEW_ARY(st->routes,st->n_clients); /* Fill the table */ i=0; for (c=st->clients; c; c=c->next) {