Ensure user_msg is initialized
authorAlan T. DeKok <aland@freeradius.org>
Thu, 6 Jun 2013 14:06:36 +0000 (10:06 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 6 Jun 2013 14:44:14 +0000 (10:44 -0400)
src/main/exec.c

index 0d395f5..019405b 100644 (file)
@@ -509,6 +509,8 @@ int radius_exec_program(char const *cmd, REQUEST *request,
        char answer[4096];
 #endif
 
+       if (user_msg) *user_msg = '\0';
+
        pid = radius_start_program(cmd, request, exec_wait, NULL, &from_child, input_pairs, shell_escape);
        if (pid < 0) {
                return -1;