diff options
author | Dario Lombardo <lomato@gmail.com> | 2015-11-04 17:49:48 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-04 22:22:33 +0000 |
commit | 0e01c018fa192f837e5ef84392b1218def5b641a (patch) | |
tree | f1289677f0e4545173624ac8a48783fc351c12d1 /epan | |
parent | a892e9ba71169f32dbb63cdde66660677ec874d0 (diff) |
gssapi: add init in wrap_dissect_gssapi_payload().
Found by clang analyzer.
Change-Id: I1c5cb13e174df588c8834508b10790d3fd5b272a
Reviewed-on: https://code.wireshark.org/review/11564
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-gssapi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gssapi.c b/epan/dissectors/packet-gssapi.c index d6aafed303..4f41cbf47f 100644 --- a/epan/dissectors/packet-gssapi.c +++ b/epan/dissectors/packet-gssapi.c @@ -688,6 +688,8 @@ wrap_dissect_gssapi_payload(tvbuff_t *data_tvb, tvbuff_t *auth_tvb, tvbuff_t *result; gssapi_encrypt_info_t gssapi_encrypt; + memset(&gssapi_encrypt, 0x0, sizeof(gssapi_encrypt_info_t)); + /* we need a full auth and a full data tvb or else we can't decrypt anything */ @@ -696,9 +698,8 @@ wrap_dissect_gssapi_payload(tvbuff_t *data_tvb, tvbuff_t *auth_tvb, } gssapi_encrypt.decrypt_gssapi_tvb=DECRYPT_GSSAPI_DCE; - gssapi_encrypt.gssapi_wrap_tvb=NULL; gssapi_encrypt.gssapi_encrypted_tvb=data_tvb; - gssapi_encrypt.gssapi_decrypted_tvb=NULL; + dissect_gssapi(auth_tvb, pinfo, NULL, &gssapi_encrypt); result=gssapi_encrypt.gssapi_decrypted_tvb; |