X-Git-Url: https://ruderich.org/simon/gitweb/?p=tlsproxy%2Ftlsproxy.git;a=blobdiff_plain;f=src%2Fverify.c;h=f6742361f3e9d111a4bc779c246a10d11914a6fe;hp=d4002764dbfece338008632c794ce226dade233c;hb=780dee36f7c90cc505a64a8b4489dc1fbdeeb42a;hpb=5ca1b3118da58c669b3bbf6d8e198cc2fe3d9b81 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'",