Split get_dns_name() into get_dns_name() and expand_dns_name().
authorGerald Combs <gerald@wireshark.org>
Wed, 23 Feb 2011 00:51:02 +0000 (00:51 -0000)
committerGerald Combs <gerald@wireshark.org>
Wed, 23 Feb 2011 00:51:02 +0000 (00:51 -0000)
commit47837956900070b04a47f0289de3fb0ce2c3251c
treeadfd156482ef20ce84a4fb62abe389cf2e894b52
parent740c1c4aeb072e81b13b95020a1547da8eecffbf
Split get_dns_name() into get_dns_name() and expand_dns_name().

In dissect_ms_compressed_string() dissect_mscldap_string() simply call
expand_dns_name() instead of using duplicate (and insecure) code. This
*might* break CLDAP and SMB dissection. If that's the case we should
probably revert get_dns_name() and simplify expand_dns_name().

Fixes infinite recursion errors found by joernchen of Phenoelit.

svn path=/trunk/; revision=36029
asn1/ldap/packet-ldap-template.c
asn1/ldap/packet-ldap-template.h
epan/dissectors/packet-dns.c
epan/dissectors/packet-dns.h
epan/dissectors/packet-ldap.c
epan/dissectors/packet-ldap.h
epan/dissectors/packet-smb-common.c
epan/dissectors/packet-smb-common.h
epan/dissectors/packet-smb-logon.c