Diff between 1248bdd432915e3cdac1561127aa723e2cf153be and f84979c1591f8911b1557d454dcfeab56b12a7f1

Changed Files

File Additions Deletions Status
monitor/packet.c +1 -1 modified

Full Patch

diff --git a/monitor/packet.c b/monitor/packet.c
index 946ceb2..6d73e5a 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -438,7 +438,7 @@ static void print_packet(struct timeval *tv, struct ucred *cred, char ident,
 			pos += n;
 	}
 
-	if (cred) {
+	if (cred && cred->pid) {
 		cred_pid(cred, pid_str, sizeof(pid_str));
 		n = sprintf(line + pos, "%s: %c %s", pid_str, ident,
 						label ? label : "");