Merge pull request #1697 from embhorn/zd4060

Dead code in wolfSSL_BIO_gets()
This commit is contained in:
David Garske
2018-07-18 09:22:35 -07:00
committed by GitHub

View File

@ -580,8 +580,8 @@ int wolfSSL_BIO_gets(WOLFSSL_BIO* bio, char* buf, int sz)
const byte* c; const byte* c;
int cSz; int cSz;
cSz = wolfSSL_BIO_pending(bio); cSz = wolfSSL_BIO_pending(bio);
if (cSz <= 0) { if (cSz == 0) {
ret = (ret == 0) ? 0 /* Nothing read */ : cSz /* error */; ret = 0; /* Nothing to read */
buf[0] = '\0'; buf[0] = '\0';
break; break;
} }