fix kerberos_get_private_data
authorStefan Metzmacher <metze@samba.org>
Mon, 14 Jan 2019 23:33:27 +0000 (00:33 +0100)
committerStefan Metzmacher <metze@samba.org>
Sun, 20 Jan 2019 22:14:58 +0000 (23:14 +0100)
Change-Id: Ieee3f2b71bc206629a394baf8ae1512c210b772e

epan/dissectors/asn1/kerberos/packet-kerberos-template.c

index 861fdad..686981c 100644 (file)
@@ -285,10 +285,7 @@ kerberos_get_private_data_p(packet_info *pinfo)
 static kerberos_private_data_t*
 kerberos_get_private_data(asn1_ctx_t *actx)
 {
-       if (actx->private_data == NULL) {
-               actx->private_data = kerberos_get_private_data_p(actx->pinfo);
-       }
-       return (kerberos_private_data_t *)(actx->private_data);
+       return kerberos_get_private_data_p(actx->pinfo);
 }
 
 gboolean