]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPS: Clean up indentation level (CID 68109)
authorJouni Malinen <j@w1.fi>
Thu, 12 Jun 2014 15:42:29 +0000 (18:42 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 12 Jun 2014 16:45:31 +0000 (19:45 +0300)
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>
src/wps/httpread.c

index 6d2d11c49c7fb6ae5da62e4e608b117227b9a814..2f08f37275c011bb06fb8303f150e2c6d7a56e19 100644 (file)
@@ -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;