Skip to content
Permalink
Browse files

Fix possible null

Found by: michaelortmann
Patch by: michaelortmann
Fixes: #707
  • Loading branch information
michaelortmann committed Mar 7, 2020
1 parent 4f2e81a commit 890bd5c32f00d58c1f2ca498a1767fa94ec97021
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/main.c
@@ -866,9 +866,8 @@ int mainloop(int toplevel)
}
dcc[idx].type->activity(idx, buf, i);
} else
putlog(LOG_MISC, "*",
"!!! untrapped dcc activity: type %s, sock %d",
dcc[idx].type->name, dcc[idx].sock);
putlog(LOG_MISC, "*", "ERROR: untrapped dcc activity: type %s, sock %d",
dcc[idx].type ? dcc[idx].type->name : "UNKNOWN", dcc[idx].sock);
break;
}
} else if (xx == -1) { /* EOF from someone */

0 comments on commit 890bd5c

Please sign in to comment.
You can’t perform that action at this time.