X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=ssl%2Ft1_lib.c;h=6c988d18297fa834be08633365a958c749592f53;hp=0626fc6fcb235c12c81e810bbd3de676ec9c1df3;hb=9dabfce1a88ca00c0542502db51b60de8d8e3e79;hpb=0a6028757a77769f09d5c6dd3a541971224a5d81 diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 0626fc6fcb..6c988d1829 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -1708,14 +1708,14 @@ unsigned char *ssl_add_serverhello_tlsext(SSL *s, unsigned char *p, unsigned cha /* NULL callback or -1 omits extension */ if (!record->fn2) - break; + continue; cb_retval = record->fn2(s, record->ext_type, &out, &outlen, al, record->arg); if (cb_retval == 0) return NULL; /* error */ if (cb_retval == -1) - break; /* skip this extension */ + continue; /* skip this extension */ if (limit < ret + 4 + outlen) return NULL; s2n(record->ext_type, ret);