Skip to content

Commit

Permalink
Fix testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Jul 7, 2023
1 parent 7ffd0a8 commit 1bdb14f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ static inline ssize_t
readsocket(void *buf, size_t count)
{
#ifdef WITH_OPENSSL
if (sockproto == SOCKPROTO_SSL)
if (!test_sign && sockproto == SOCKPROTO_SSL)
return SSL_read(ssl, buf, count);
#endif
return read(sock, buf, count);
Expand All @@ -200,7 +200,7 @@ static inline ssize_t
writesocket(void *buf, size_t count)
{
#ifdef WITH_OPENSSL
if (sockproto == SOCKPROTO_SSL)
if (!test_sign && sockproto == SOCKPROTO_SSL)
return SSL_write(ssl, buf, count);
#endif
return write(sock, buf, count);
Expand Down Expand Up @@ -283,7 +283,7 @@ doreq_raw(byte *buf, int inbufl, int bufl)
opensocket(); /* better late then never */
if (test_sign)
doreq_test(buf, inbufl, bufl);
if (writesocket(buf, inbufl) != inbufl)
else if (writesocket(buf, inbufl) != inbufl)
{
perror("write");
closesocket();
Expand Down

0 comments on commit 1bdb14f

Please sign in to comment.