src/net_socket.c bind_to_address(): Use after free in error path.
[tinc] / src / tincd.c
index 17d5008..8497149 100644 (file)
@@ -445,7 +445,7 @@ int main2(int argc, char **argv) {
 
        /* Change process priority */
 
-        char *priority = 0;
+        char *priority = NULL;
 
         if(get_config_string(lookup_config(config_tree, "ProcessPriority"), &priority)) {
                 if(!strcasecmp(priority, "Normal")) {