From: Apple Date: Fri, 25 Sep 2009 00:07:58 +0000 (+0000) Subject: network_cmds-325.1.tar.gz X-Git-Tag: mac-os-x-1062^0 X-Git-Url: https://git.saurik.com/apple/network_cmds.git/commitdiff_plain/a714067a3b74ea6b92eee971530bc1e986b60230?ds=sidebyside network_cmds-325.1.tar.gz --- diff --git a/natd.tproj/natd.c b/natd.tproj/natd.c index 3bb6c70..2ec1621 100644 --- a/natd.tproj/natd.c +++ b/natd.tproj/natd.c @@ -1938,7 +1938,7 @@ static void ParseOption (const char* option, const char* parms) { if (forwardedinterfacename != NULL) { - if ( realloc(forwardedinterfacename, (numofinterfaces+1) * sizeof(*forwardedinterfacename)) == NULL){ + if ( (forwardedinterfacename = realloc( forwardedinterfacename, (numofinterfaces+1) * sizeof(*forwardedinterfacename ))) == NULL ){ printf("realloc error, cannot allocate memory for fowarded interface name.\n"); return; }