]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[http] Fix typo in memory allocation
authorKevin Tran <ktran@broadcom.com>
Fri, 27 Apr 2012 20:07:12 +0000 (21:07 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 27 Apr 2012 20:07:12 +0000 (21:07 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/tcp/httpcore.c

index f227e126d23a899a35361babb1a268b103f452df..d0ad952ee0efbdf243fdf6eb2e77235fbf3f93a4 100644 (file)
@@ -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;
        }