summaryrefslogtreecommitdiffstats
path: root/src/crypto/bio/fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/bio/fd.c')
-rw-r--r--src/crypto/bio/fd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/bio/fd.c b/src/crypto/bio/fd.c
index 0b5baca..0b3484c 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 1;
+ return b->num;
} else {
- ret = 0;
+ ret = -1;
}
break;
case BIO_CTRL_GET_CLOSE: