X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=common%2Fcli_hush.c;h=296542f4c2d62b7094694a40c79c7d2fe9fdf545;hb=24d75dac82f1138bc9454ecb4788b438405a608e;hp=d6439129228c6652a415d94e5c9ce410b0a9a982;hpb=bdf790fabc8185112b3f699c8a25aab09c50239e;p=karo-tx-uboot.git diff --git a/common/cli_hush.c b/common/cli_hush.c index d643912922..296542f4c2 100644 --- a/common/cli_hush.c +++ b/common/cli_hush.c @@ -3217,7 +3217,7 @@ static int parse_stream_outer(struct in_str *inp, int flag) } b_free(&temp); /* loop on syntax errors, return on EOF */ - } while (rcode != 1 && !(flag & FLAG_EXIT_FROM_LOOP) && + } while (rcode != -1 && !(flag & FLAG_EXIT_FROM_LOOP) && (inp->peek != static_peek || b_peek(inp))); #ifndef __U_BOOT__ return 0;