Fix replying to "QU" questions received on unicast interface
authorRafał Miłecki <rafal@milecki.pl>
Mon, 20 Mar 2017 16:35:21 +0000 (17:35 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 20 Mar 2017 16:39:33 +0000 (17:39 +0100)
commit9f1cc226e4be47d32e4df796c94cbee1437960aa
tree25fe5191d58dcd0faf80d2485ccfce82d25a7559
parent943bedb9dae8ff083e18795a7f82c7071988ea03
Fix replying to "QU" questions received on unicast interface

We may receive questions on unicast interface, e.g. when another client
is refreshing its entries. "QU" questions are "questions requesting
unicast responses" which means we should obviously send unicast replies.

Old code wasn't setting "to" variable correctly so IP address wasn't
passed back to the interface layer. It means replies were never sent.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
dns.c