From: Alan T. DeKok Date: Thu, 21 Feb 2013 00:46:45 +0000 (-0500) Subject: fix for coverity X-Git-Tag: release_3_0_0_beta1~964 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3dbfe024cc2fee06db05258612ed04ed88bae41;p=thirdparty%2Ffreeradius-server.git fix for coverity --- diff --git a/src/lib/valuepair.c b/src/lib/valuepair.c index 214369b63ff..62b4de90709 100644 --- a/src/lib/valuepair.c +++ b/src/lib/valuepair.c @@ -1520,6 +1520,7 @@ VALUE_PAIR *pairmake(const char *attribute, const char *value, FR_TOKEN op) strlcpy(buffer, attribute, sizeof(buffer)); attrname = buffer; ts = strrchr(attrname, ':'); + if (!ts) return NULL; /* Colon found with something behind it */ if (ts[1] == '*' && ts[2] == 0) {