aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ldap.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2019-06-23 23:59:32 +0200
committerAnders Broman <a.broman58@gmail.com>2019-06-24 12:14:58 +0000
commit3ae9831cb1a415c55a105d6225786482243e076c (patch)
tree526a150b0bf93f19032bc496134dc67c39b48583 /epan/dissectors/packet-ldap.c
parent266e4bafb6fe62bd523ae2cb549741f9d15bda58 (diff)
ldap: remove dead increment (found by clang).
Small indentation fixes while here. Change-Id: Id1d0a0e9556e5910f5cddfc442549eb2f5fc8a3c Reviewed-on: https://code.wireshark.org/review/33721 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ldap.c')
-rw-r--r--epan/dissectors/packet-ldap.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/epan/dissectors/packet-ldap.c b/epan/dissectors/packet-ldap.c
index 4e6363def3..87bb49bb7f 100644
--- a/epan/dissectors/packet-ldap.c
+++ b/epan/dissectors/packet-ldap.c
@@ -4479,7 +4479,7 @@ static int dissect_NetLogon_PDU(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tre
old_offset = offset + 4;
item = proto_tree_add_item(tree, hf_mscldap_netlogon_ipaddress, tvb, old_offset, 4, ENC_BIG_ENDIAN);
- if (tree){
+ if (tree) {
proto_tree *subtree;
subtree = proto_item_add_subtree(item, ett_mscldap_ipdetails);
@@ -4494,21 +4494,16 @@ static int dissect_NetLogon_PDU(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tre
/* get IP address */
proto_tree_add_item(subtree, hf_mscldap_netlogon_ipaddress_ipv4, tvb, offset, 4, ENC_BIG_ENDIAN);
- offset +=4;
-
- /* skip the 8 bytes of zeros in the sockaddr structure */
- offset += 8;
}
-
}
break;
}
- /* complete the decode with the version and token details */
+ /* complete the decode with the version and token details */
- offset = len-8;
+ offset = len - 8;
/* NETLOGON_NT_VERISON Options (MS-ADTS 7.3.1.1) */
offset = dissect_mscldap_ntver_flags(tree, tvb, offset);