check return value
[openssl.git] / crypto / bio / bio_lib.c
index 5e96772ca5bb452e758589651f9cee710ecfcef3..dcc989f9d6bfb930ec667f87855fcf7bc67006db 100644 (file)
@@ -338,7 +338,7 @@ long BIO_callback_ctrl(BIO *b, int cmd, void (*fp)(struct bio_st *, int, const c
 
        if ((b->method == NULL) || (b->method->callback_ctrl == NULL))
                {
-               BIOerr(BIO_F_BIO_CTRL,BIO_R_UNSUPPORTED_METHOD);
+               BIOerr(BIO_F_BIO_CALLBACK_CTRL,BIO_R_UNSUPPORTED_METHOD);
                return(-2);
                }