commit d55d6174ba3631ef9e11db86e54c11faae3c303c from: Omar Polo date: Thu Apr 01 10:24:50 2021 UTC handle success code other than 20 20 is the only used, but *technically* one (read: Sean and his client torture test) can send 29, 27, ... commit - ba714ce39272d4bc52ac0f792f0f086afe3a477e commit + d55d6174ba3631ef9e11db86e54c11faae3c303c blob - 15e1d100b7d8c226a577e0f08d39cb041580c777 blob + 554d7d628d8fa49811dccad343c5d53192a58725 --- gemini.c +++ gemini.c @@ -487,7 +487,7 @@ parse_reply(struct req *req) imsg_compose(ibuf, IMSG_GOT_META, req->id, 0, -1, req->buf, len); imsg_flush(ibuf); - if (code != 20) + if (20 <= code && code < 30) close_conn(0, 0, req); else advance_buf(req, len+1); /* skip \n too */