mirror of
https://framagit.org/bortzmeyer/echoping
synced 2024-11-03 03:40:33 +00:00
Stupid bug when using unions
This commit is contained in:
parent
4512283a2b
commit
9594606bc4
@ -129,10 +129,10 @@ read_from_server (CHANNEL fs, short ssl)
|
||||
}
|
||||
/* Read the body */
|
||||
if (!ssl)
|
||||
nr = readline (fs, big_recvline, MAXTOREAD, FALSE);
|
||||
nr = readline (fs.fs, big_recvline, MAXTOREAD, FALSE);
|
||||
#ifdef OPENSSL
|
||||
else
|
||||
nr = SSL_readline (fs, big_recvline, MAXTOREAD, FALSE);
|
||||
nr = SSL_readline (fs.ssl, big_recvline, MAXTOREAD, FALSE);
|
||||
#endif
|
||||
if ((nr < 2) && (errno == EINTR)) /* Probably a timeout */
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user