~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adnsresfilter: Fix addrtextbuf buffer size
[adns]
/
regress
/
hrecord.c
diff --git
a/regress/hrecord.c
b/regress/hrecord.c
index
88e24a4
..
dec099b
100644
(file)
--- a/
regress/hrecord.c
+++ b/
regress/hrecord.c
@@
-81,9
+81,9
@@
int Hpoll( struct pollfd *fds , int nfds , int timeout ) {
#endif
int Hsocket( int domain , int type , int protocol ) {
int r, e;
#endif
int Hsocket( int domain , int type , int protocol ) {
int r, e;
-
Tmust("socket","domain",domain==AF_INET
);
+
Tmust("socket","domain",domain==AF_INET || domain==AF_INET6
);
Tmust("socket","type",type==SOCK_STREAM || type==SOCK_DGRAM);
Tmust("socket","type",type==SOCK_STREAM || type==SOCK_DGRAM);
- Qsocket( type );
+ Qsocket(
domain ,
type );
r= socket( domain , type , protocol );
e= errno;
vb.used= 0;
r= socket( domain , type , protocol );
e= errno;
vb.used= 0;