Browse Source

[http] Fix typo in memory allocation

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Kevin Tran 12 years ago
parent
commit
e01cf6fb3a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/net/tcp/httpcore.c

+ 1
- 1
src/net/tcp/httpcore.c View File

664
 
664
 
665
 	/* Allocate dynamic storage */
665
 	/* Allocate dynamic storage */
666
 	dynamic = malloc ( sizeof ( *dynamic ) );
666
 	dynamic = malloc ( sizeof ( *dynamic ) );
667
-	if ( ! malloc ) {
667
+	if ( ! dynamic ) {
668
 		rc = -ENOMEM;
668
 		rc = -ENOMEM;
669
 		goto err_alloc;
669
 		goto err_alloc;
670
 	}
670
 	}

Loading…
Cancel
Save