diff --git a/omapip/protocol.c b/omapip/protocol.c index d222e5c8..ac1d63bd 100644 --- a/omapip/protocol.c +++ b/omapip/protocol.c @@ -102,12 +102,14 @@ isc_result_t omapi_protocol_connect (omapi_object_t *h, } obj -> insecure = 0; + status = ISC_R_INCOMPLETE; } else { obj -> insecure = 1; + status = ISC_R_SUCCESS; } omapi_protocol_dereference (&obj, MDL); - return ISC_R_SUCCESS; + return status; } /* Send the protocol introduction message. */