diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 5a665661f4077491810859341b8c122cb579b854..d13436d913152b309b69b528567bc57b99215468 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -538,6 +538,7 @@ int cert_stuff(struct connectdata *conn,
 
       if(!cert_done)
         return 0; /* failure! */
+      break;
 #else
       failf(data, "file type P12 for certificate not supported");
       return 0;