chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated README.
[adns]
/
src
/
check.c
diff --git
a/src/check.c
b/src/check.c
index 04c5c8e0c30dee087511ae3d0a9ba1400942ef62..4d5e031f702acbdfafee00fcfaea8cd30caf1f28 100644
(file)
--- a/
src/check.c
+++ b/
src/check.c
@@
-3,7
+3,12
@@
* - consistency checks
*/
/*
* - 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 <ian@davenant.greenend.org.uk>
+ *
+ * It is part of adns, which is
+ * Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
+ * Copyright (C) 1999 Tony Finch <dot@dotat.at>
*
* 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
*
* 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 */
case server_connecting:
assert(ads->tcpsocket >= 0);
case server_disconnected: /* fall through */
- assert(!ads->tcprecv.used);
assert(!ads->tcpsend.used);
assert(!ads->tcpsend.used);
+ assert(!ads->tcprecv.used);
+ assert(!ads->tcprecv_skip);
break;
case server_ok:
assert(ads->tcpsocket >= 0);
break;
case server_ok:
assert(ads->tcpsocket >= 0);
+ assert(ads->tcprecv_skip <= ads->tcprecv.used);
break;
default:
assert(!"ads->tcpstate value");
break;
default:
assert(!"ads->tcpstate value");