Skip to content

Commit 388f177

Browse files
authored
Merge pull request #336 from admardare-cyber/amardare-335
Fix null pointer exception
2 parents e6b1f8c + 3de0892 commit 388f177

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/dialects/linux/dproc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,7 @@ static int process_id(struct lsof_context *ctx, /* context */
11841184
continue;
11851185
(void)make_proc_path(ctx, dpath, i, &path, &pathl, fp->d_name);
11861186
(void)alloc_lfile(ctx, LSOF_FD_NUMERIC, fd);
1187+
efs = 0;
11871188
if (getlinksrc(path, pbuf, sizeof(pbuf), &rest) < 1) {
11881189
zeromem((char *)&sb, sizeof(sb));
11891190
lnk = ss = 0;

0 commit comments

Comments
 (0)