X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/blobdiff_plain/2f5e252a6aa62e9bcea09868884561f2761c61b3..6239fc5b39f0055dbc53ccbfc80148824a811beb:/regress/hrecord.c diff --git a/regress/hrecord.c b/regress/hrecord.c index 88e24a4..c059434 100644 --- 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; - Tmust("socket","domain",domain==AF_INET); + Tmust("socket","domain",domain==PF_INET || domain==PF_INET6); Tmust("socket","type",type==SOCK_STREAM || type==SOCK_DGRAM); - Qsocket( type ); + Qsocket( domain , type ); r= socket( domain , type , protocol ); e= errno; vb.used= 0;