From: Alan T. DeKok Date: Sun, 11 Oct 2015 21:14:21 +0000 (-0400) Subject: Ignore invalid write_p X-Git-Tag: release_3_0_11~266 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee760b5cd166aae22c822cbbf11c75b2d2316154;p=thirdparty%2Ffreeradius-server.git Ignore invalid write_p --- diff --git a/src/main/cb.c b/src/main/cb.c index f6880a2faa6..4ae14e575be 100644 --- a/src/main/cb.c +++ b/src/main/cb.c @@ -93,6 +93,11 @@ void cbtls_msg(int write_p, int msg_version, int content_type, return; } + if ((write_p != 0) && (write_p != 1)) { + DEBUG4("Ignoring cbtls_msg call with invalid write_p %d", write_p); + return; + } + /* * Work around bug #298, where we may be called with a NULL * argument. We should really log a serious error