The implementation here was doing what it was supposed to, but the code was indented in a way that made it quite confusing in the context of a single line if statement body. Signed-off-by: Jouni Malinen <j@w1.fi>
@@ -413,8 +413,8 @@ static void httpread_read_handler(int sd, void *eloop_ctx, void *sock_ctx)
*/
if (httpread_debug >= 10)
wpa_printf(MSG_DEBUG, "httpread ok eof(%p)", h);
- h->got_body = 1;
- goto got_file;
+ h->got_body = 1;
+ goto got_file;
}
rbp = readbuf;