diff options
author | Kevin Tran | 2012-04-27 22:07:12 +0200 |
---|---|---|
committer | Michael Brown | 2012-04-27 22:07:12 +0200 |
commit | e01cf6fb3a0d31a7a80465c0359207c9b163e76f (patch) | |
tree | 9a4e87907b8043525e4c7223f4d03c471116ffa9 | |
parent | [myson] Replace driver for Myson Technology NICs (diff) | |
download | ipxe-e01cf6fb3a0d31a7a80465c0359207c9b163e76f.tar.gz ipxe-e01cf6fb3a0d31a7a80465c0359207c9b163e76f.tar.xz ipxe-e01cf6fb3a0d31a7a80465c0359207c9b163e76f.zip |
[http] Fix typo in memory allocation
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r-- | src/net/tcp/httpcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/tcp/httpcore.c b/src/net/tcp/httpcore.c index f227e126..d0ad952e 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; } |