aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tacacs.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2012-12-18 23:28:38 +0000
committerJeff Morriss <jeff.morriss.ws@gmail.com>2012-12-18 23:28:38 +0000
commit09221f45e4db2e2fb01fda57bc20e315a29c9838 (patch)
treebf96995ef321b637480790331254a15074e6b663 /epan/dissectors/packet-tacacs.c
parent8b69e3ee22b83c24c81ccef64c1e73a503ce0bc0 (diff)
When copying addresses, also copy the (new) hf field.
Use SET_ADDRESS in some dissectors that weren't using it (so that the hf field is correctly initialized). Introduce a COPY_ADDRESS_SHALLOW (which copies an address without copying the contents of the data field). svn path=/trunk/; revision=46602
Diffstat (limited to 'epan/dissectors/packet-tacacs.c')
-rw-r--r--epan/dissectors/packet-tacacs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-tacacs.c b/epan/dissectors/packet-tacacs.c
index bdc49c7850..fcf86d104d 100644
--- a/epan/dissectors/packet-tacacs.c
+++ b/epan/dissectors/packet-tacacs.c
@@ -841,9 +841,7 @@ mkipv4_address( address **addr, const char *str_addr )
*addr=g_malloc( sizeof(address) );
addr_data=g_malloc( 4 );
inet_pton( AF_INET, str_addr, addr_data );
- (*addr)->type=AT_IPv4;
- (*addr)->len=4;
- (*addr)->data=(guint8*)addr_data;
+ SET_ADDRESS(*addr, AT_IPv4, 4, addr_data);
}
static void
parse_tuple( char *key_from_option )