X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=src%2Fverify.c;h=f6742361f3e9d111a4bc779c246a10d11914a6fe;hb=780dee36f7c90cc505a64a8b4489dc1fbdeeb42a;hp=d4002764dbfece338008632c794ce226dade233c;hpb=8b2ed4a58229f9b377f3a4ae74af36c31c5db1c0;p=tlsproxy%2Ftlsproxy.git diff --git a/src/verify.c b/src/verify.c index d400276..f674236 100644 --- a/src/verify.c +++ b/src/verify.c @@ -20,6 +20,7 @@ #include "tlsproxy.h" #include "verify.h" +#include #include #include @@ -180,6 +181,7 @@ static int get_certificate_path(const char *format, int result; /* Hostname too long. */ + assert(size > strlen(format)); if (size - strlen(format) <= strlen(hostname)) { LOG(WARNING, "get_certificate_path(): hostname too long: '%s'",