diff --git a/lib/hx509/req.c b/lib/hx509/req.c index 64eb543a1..7f04c99f0 100644 --- a/lib/hx509/req.c +++ b/lib/hx509/req.c @@ -1377,7 +1377,7 @@ hx509_request_get_san(hx509_request req, &san->u.otherName.value); if ((*out = rk_strpoolcollect(pool)) == NULL) return hx509_enomem(req->context); - return 0; + return ret; } default: *type = HX509_SAN_TYPE_UNSUPPORTED;