mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-26 19:30:33 +05:00
nfqws: fix crash
This commit is contained in:
parent
f8bd218e67
commit
6e619eba1a
@ -192,7 +192,7 @@ static bool nfq_init(struct nfq_handle **h,struct nfq_q_handle **qh)
|
||||
|
||||
DLOG_CONDUP("binding this socket to queue '%u'\n", params.qnum);
|
||||
*qh = nfq_create_queue(*h, params.qnum, &nfq_cb, ¶ms);
|
||||
if (!qh) {
|
||||
if (!*qh) {
|
||||
DLOG_PERROR("nfq_create_queue()");
|
||||
goto exiterr;
|
||||
}
|
||||
@ -249,7 +249,8 @@ static int nfq_main(void)
|
||||
|
||||
pre_desync();
|
||||
|
||||
nfq_init(&h,&qh);
|
||||
if (!nfq_init(&h,&qh))
|
||||
goto exiterr;
|
||||
|
||||
fd = nfq_fd(h);
|
||||
do
|
||||
|
Loading…
Reference in New Issue
Block a user