diff --git a/lib/vtls/x509asn1.c b/lib/vtls/x509asn1.c index b687a60193..fd45285b49 100644 --- a/lib/vtls/x509asn1.c +++ b/lib/vtls/x509asn1.c @@ -442,7 +442,7 @@ static CURLcode encodeOID(struct dynbuf *store, x = 0; do { if(x & 0xFF000000) - return CURLE_OK; + return CURLE_BAD_FUNCTION_ARGUMENT; else if(beg == end) return CURLE_BAD_FUNCTION_ARGUMENT; y = *(const unsigned char *)beg++;