X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/blobdiff_plain/9f1041a64878c4ab23975e6aeca34d921ab58f21..8f3b71b03532e90c147ef21f36a876b093b0ef3b:/src/check.c?ds=inline diff --git a/src/check.c b/src/check.c index 04c5c8e..4d5e031 100644 --- a/src/check.c +++ b/src/check.c @@ -3,7 +3,12 @@ * - consistency checks */ /* - * This file is part of adns, which is Copyright (C) 1997-1999 Ian Jackson + * This file is + * Copyright (C) 1997-1999 Ian Jackson + * + * It is part of adns, which is + * Copyright (C) 1997-1999 Ian Jackson + * Copyright (C) 1999 Tony Finch * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -78,11 +83,13 @@ static void checkc_global(adns_state ads) { case server_connecting: assert(ads->tcpsocket >= 0); case server_disconnected: /* fall through */ - assert(!ads->tcprecv.used); assert(!ads->tcpsend.used); + assert(!ads->tcprecv.used); + assert(!ads->tcprecv_skip); break; case server_ok: assert(ads->tcpsocket >= 0); + assert(ads->tcprecv_skip <= ads->tcprecv.used); break; default: assert(!"ads->tcpstate value");