corosync-totemnet: remove dead code (CID 1223483).
authorDario Lombardo <lomato@gmail.com>
Sun, 7 Aug 2016 21:02:44 +0000 (23:02 +0200)
committerPeter Wu <peter@lekensteyn.nl>
Mon, 8 Aug 2016 10:49:30 +0000 (10:49 +0000)
Change-Id: I83aaeca7d000a5e328e0aded38093adc45a9d315
Reviewed-on: https://code.wireshark.org/review/16951
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
epan/dissectors/packet-corosync-totemnet.c

index 4431aa655bfdd3db6b6bf871fd9b83619e637cb5..2a21c733f2128c48bf59bc18422b90e4af983864 100644 (file)
@@ -293,8 +293,6 @@ dissect_corosynec_totemnet_with_decryption(tvbuff_t *tvb,
   memset(private_key, 0, sizeof(private_key));
 
   private_key_len = (strlen(key_for_trial)+4) & 0xFC;
-  if (private_key_len > PRIVATE_KEY_LEN_MAX)
-    private_key_len = PRIVATE_KEY_LEN_MAX;
   g_strlcpy(private_key, key_for_trial, private_key_len);
 
   /*