diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-04-30 21:22:15 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-04-30 21:22:15 +0000 |
commit | 355206195c490ad9b0843271df1c936dcfd481d8 (patch) | |
tree | d69085c7811975f5af749d36e1def9c71a254434 /epan | |
parent | 22812caf64f63088860f0b48116f2536e17ba30e (diff) |
Use memcpy() to copy the session ID to the buffer, so we don't get
warnings from the compiler about pointer value alignment.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21629 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-tacacs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tacacs.c b/epan/dissectors/packet-tacacs.c index e9d431b9b6..2ba94872bf 100644 --- a/epan/dissectors/packet-tacacs.c +++ b/epan/dissectors/packet-tacacs.c @@ -352,7 +352,7 @@ tacplus_decrypted_tvb_setup( tvbuff_t *tvb, tvbuff_t **dst_tvb, packet_info *pin /* TODO Check the possibility to use pinfo->decrypted_data */ /* session_id is in NETWORK Byte Order, and is used as byte array in the md5_xor */ - tvb_memcpy(tvb, (guint8*)session_id, 4,4); + tvb_memcpy(tvb, session_id, 4,4); buff = tvb_memdup(tvb, TAC_PLUS_HDR_SIZE, len); @@ -1135,7 +1135,7 @@ md5_xor( guint8 *data, const char *key, int data_len, guint8 *session_id, guint8 mdp = md5_buff; - *(guint32*)mdp = *(guint32*)session_id; + memcpy(mdp, session_id, 4); mdp += 4 ; memcpy(mdp, key, strlen(key)); mdp += strlen(key); |