Stupid bug when using unions

GETADDRINFO
Stephane Bortzmeyer 24 years ago
parent 4512283a2b
commit 9594606bc4

@ -129,10 +129,10 @@ read_from_server (CHANNEL fs, short ssl)
} }
/* Read the body */ /* Read the body */
if (!ssl) if (!ssl)
nr = readline (fs, big_recvline, MAXTOREAD, FALSE); nr = readline (fs.fs, big_recvline, MAXTOREAD, FALSE);
#ifdef OPENSSL #ifdef OPENSSL
else else
nr = SSL_readline (fs, big_recvline, MAXTOREAD, FALSE); nr = SSL_readline (fs.ssl, big_recvline, MAXTOREAD, FALSE);
#endif #endif
if ((nr < 2) && (errno == EINTR)) /* Probably a timeout */ if ((nr < 2) && (errno == EINTR)) /* Probably a timeout */
return -1; return -1;

Loading…
Cancel
Save