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; }