We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c42683 commit 15646aaCopy full SHA for 15646aa
lib/dialects/linux/dproc.c
@@ -1273,7 +1273,7 @@ static int process_id(struct lsof_context *ctx, /* context */
1273
#endif /* defined(HASEPTOPTS) */
1274
if (rest && rest[0] == '[' && rest[1] == 'p')
1275
fdinfo_mask |= FDINFO_PID;
1276
- else if (Lf->ntype == N_REGLR && rest && *rest && strcmp(pbuf, "pidfd") == 0) {
+ else if (Lf && Lf->ntype == N_REGLR && rest && *rest && strcmp(pbuf, "pidfd") == 0) {
1277
// https://github.com/lsof-org/lsof/issues/317
1278
1279
}
0 commit comments