]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fix for coverity
authorAlan T. DeKok <aland@freeradius.org>
Thu, 21 Feb 2013 00:46:45 +0000 (19:46 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 21 Feb 2013 00:46:45 +0000 (19:46 -0500)
src/lib/valuepair.c

index 214369b63ff490e0cae6815281c90d9115bc1d1c..62b4de90709d1c12405c8c767da442187a8fb6da 100644 (file)
@@ -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) {