diff options
Diffstat (limited to 'src/crypto/bio/fd.c')
-rw-r--r-- | src/crypto/bio/fd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/bio/fd.c b/src/crypto/bio/fd.c index 0b3484c..0b5baca 100644 --- a/src/crypto/bio/fd.c +++ b/src/crypto/bio/fd.c @@ -208,9 +208,9 @@ static long fd_ctrl(BIO *b, int cmd, long num, void *ptr) { if (ip != NULL) { *ip = b->num; } - return b->num; + return 1; } else { - ret = -1; + ret = 0; } break; case BIO_CTRL_GET_CLOSE: |