1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Author: Andreas Tille <tille@debian.org>
Last-Update: Thu, 17 Dec 2015 11:33:10 +0100
Bug-Debian: https://bugs.debian.org/716116
Description: Fix Mayhem issue
Do not deal with structure before checking for NULL value
--- a/socket_view.c
+++ b/socket_view.c
@@ -455,11 +455,11 @@ int main(int argc, char **argv){
if(argc > optind) cns_file = argv[optind++];
else cns_file = NULL;
server = createViewServer(map_file, cns_file, port, 6);
- server->debug = 1;
if(server == NULL){
printf("Cannot create View\n");
return 1;
}
+ server->debug = 1;
runViewServer(server);
exit(0);
} else if(c == 'c'){
|