diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-03-26 21:57:57 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-03-26 21:57:57 +0000 |
commit | 2256fabd866299b046143b58fa9c7a0e5cc47d62 (patch) | |
tree | aae2997633ab9bad27eca13aab1158cb89f69a17 /pcapio.c | |
parent | b800903ca2b16d3754bf4d704677da8b9a034a51 (diff) | |
download | wireshark-2256fabd866299b046143b58fa9c7a0e5cc47d62.tar.gz |
Fix Coverty 1392 ('name' might be NULL): don't write out the interface name when we're trying to write out the interface description.
svn path=/trunk/; revision=41779
Diffstat (limited to 'pcapio.c')
-rw-r--r-- | pcapio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -486,7 +486,7 @@ libpcap_write_interface_description_block(FILE *fp, option.type = IDB_DESCRIPTION; option.value_length = (guint16)strlen(descr); WRITE_DATA(fp, &option, sizeof(struct option), *bytes_written, err); - WRITE_DATA(fp, name, strlen(descr), *bytes_written, err); + WRITE_DATA(fp, descr, strlen(descr), *bytes_written, err); if (strlen(descr) % 4) { WRITE_DATA(fp, &padding, 4 - strlen(descr) % 4 , *bytes_written, err); } |