dnsproxy: Fix cached message length correctly
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Sun, 7 Apr 2013 14:52:37 +0000 (17:52 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 8 Apr 2013 06:16:39 +0000 (09:16 +0300)
commit5119c432d09946864ba8179da319578750226b3b
tree10226575bf2fd0f1f73a413e7e17d4847a37e02a
parent40efa0d29e0f0b41e445003bd3026272b5e59e4b
dnsproxy: Fix cached message length correctly

We must copy the response buffer before fixing the packet length.
Otherwise the packet length will go wrong if the request contained
EDNS0 data.
src/dnsproxy.c