Remove redundant code in dns.c
authorMatthew Jordan <mjordan@digium.com>
Sun, 14 Jul 2013 02:05:04 +0000 (02:05 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sun, 14 Jul 2013 02:05:04 +0000 (02:05 +0000)
commit583226dc5e11efe441f5371807b189cf4e07784a
tree28e47b2a90a878f2ada07c6f8c5d0e873c75ea48
parenta3592db1fb558763d28878c707a9cbc16b890e21
Remove redundant code in dns.c

Peter J Philipp pointed out that there are two checks that ensure that len is
not less than 0. If len is less than 0, the function returns. Having both of
them is clearly redundant.

This removes the second and attempts to clarify (slightly) the error condition.

(closes issue ASTERISK-21772)
Reported by: Peter J Philipp

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394305 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/dns.c