From: Kevin Tran Date: Fri, 27 Apr 2012 20:07:12 +0000 (+0100) Subject: [http] Fix typo in memory allocation X-Git-Tag: v1.20.1~1820 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e01cf6fb3a0d31a7a80465c0359207c9b163e76f;p=thirdparty%2Fipxe.git [http] Fix typo in memory allocation Signed-off-by: Michael Brown --- diff --git a/src/net/tcp/httpcore.c b/src/net/tcp/httpcore.c index f227e126d..d0ad952ee 100644 --- a/src/net/tcp/httpcore.c +++ b/src/net/tcp/httpcore.c @@ -664,7 +664,7 @@ static void http_step ( struct http_request *http ) { /* Allocate dynamic storage */ dynamic = malloc ( sizeof ( *dynamic ) ); - if ( ! malloc ) { + if ( ! dynamic ) { rc = -ENOMEM; goto err_alloc; }