chiark / gitweb /
resolved: avoid possible dereference of null pointer
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Sun, 3 Aug 2014 20:41:25 +0000 (22:41 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Sun, 3 Aug 2014 21:01:57 +0000 (23:01 +0200)
commit75cd513ef830d8e00d0d2d6a64917fec533315db
tree1cc3c0e742b896de8816d22ce26d1d98d7123580
parent621ac3d2cc8f37169166df9c7f379b0cb6b17e36
resolved: avoid possible dereference of null pointer

In dns_scope_make_reply_packet the structs q, answer, and soa can be
null. We should check for null before reading their fields.
src/resolve/resolved-dns-scope.c