summaryrefslogtreecommitdiffstats
path: root/src/net/tcp/httpcore.c
diff options
context:
space:
mode:
authorKevin Tran2012-04-27 22:07:12 +0200
committerMichael Brown2012-04-27 22:07:12 +0200
commite01cf6fb3a0d31a7a80465c0359207c9b163e76f (patch)
tree9a4e87907b8043525e4c7223f4d03c471116ffa9 /src/net/tcp/httpcore.c
parent[myson] Replace driver for Myson Technology NICs (diff)
downloadipxe-e01cf6fb3a0d31a7a80465c0359207c9b163e76f.tar.gz
ipxe-e01cf6fb3a0d31a7a80465c0359207c9b163e76f.tar.xz
ipxe-e01cf6fb3a0d31a7a80465c0359207c9b163e76f.zip
[http] Fix typo in memory allocation
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/tcp/httpcore.c')
-rw-r--r--src/net/tcp/httpcore.c2
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;
}