netsniff-ng: Store getgid() result in correct member of struct context
commitc69c838def37d46008e85fdc2f817fc9fd70c4d5
authorVadim Kochan <vadim4j@gmail.com>
Wed, 22 Apr 2015 14:36:50 +0000 (22 17:36 +0300)
committerTobias Klauser <tklauser@distanz.ch>
Wed, 22 Apr 2015 16:58:29 +0000 (22 18:58 +0200)
tree9d16a8e6ae568f6e539ce2d055da1a15d58de150
parent4956bd05e1e9f6f381e6a8ff36fb80a10ba14272
netsniff-ng: Store getgid() result in correct member of struct context

Changed to use ctx->gid when call getgid() on init_ctx. Before we were
overwriting ctx->uid which clearly is an error.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
netsniff-ng.c