From: Vadim Kochan
Changed to use ctx->gid when call getgid() on init_ctx.
Signed-off-by: Vadim Kochan
---
netsniff-ng.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/netsniff-ng.c b/netsniff-ng.c
index c0d70c8..4ad8b19 100644
--- a/netsniff-ng.c
+++ b/netsniff-ng.c
@@ -1096,7 +1096,7 @@ static void init_ctx(struct ctx *ctx)
memset(ctx, 0, sizeof(*ctx));
ctx->uid = getuid();
- ctx->uid = getgid();
+ ctx->gid = getgid();
ctx->cpu = -1;
ctx->packet_type = -1;
--
2.3.1
--
You received this message because you are subscribed to the Google Groups
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to netsniff-ng+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.