]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
CID 1409874: Always call va_end
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 26 May 2017 02:02:46 +0000 (22:02 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 26 May 2017 02:07:52 +0000 (22:07 -0400)
src/main/log.c

index 4ee5af1b0281fa05d28be122351dd9c95ba41210..4a656fc7d8a4c339b313b81b4680042b6d46fc51 100644 (file)
@@ -541,9 +541,10 @@ void radlog_request_perror(log_type_t type, log_lvl_t lvl, REQUEST *request, cha
 
                va_start(ap, msg);
                tmp = talloc_vasprintf(request, msg, ap);
-               if (!tmp) return;
                va_end(ap);
 
+               if (!tmp) return;
+
                radlog_request_error(type, lvl, request, "%s: %s", tmp, strerror);
                talloc_free(tmp);
        } else {