You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2021/05/16 14:32:55 UTC

[incubator-nuttx-apps] 02/04: webclient.c: Don't parse the status line as the first header line

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit eb1a99fdd6980c2366ab8afd7327c38941438d08
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Fri May 14 10:57:57 2021 +0900

    webclient.c: Don't parse the status line as the first header line
---
 netutils/webclient/webclient.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/netutils/webclient/webclient.c b/netutils/webclient/webclient.c
index d48196d..40c6951 100644
--- a/netutils/webclient/webclient.c
+++ b/netutils/webclient/webclient.c
@@ -447,6 +447,7 @@ static inline int wget_parsestatus(struct webclient_context *ctx,
            */
 
           ws->state = WEBCLIENT_STATE_HEADERS;
+          ndx = 0;
           break;
         }
       else