git.samba.org
/
obnox
/
wireshark
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc928de
)
Check return value from wtap_dump_file_write.
author
stig
<stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 3 Sep 2011 20:47:58 +0000
(20:47 +0000)
committer
stig
<stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 3 Sep 2011 20:47:58 +0000
(20:47 +0000)
This fixes CID 1272.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38876
f5534014
-38df-0310-8fa8-
9805f1628bb7
wiretap/erf.c
patch
|
blob
|
history
diff --git
a/wiretap/erf.c
b/wiretap/erf.c
index 0c4e4130af5f5a7af230ec115f049e9f28d9fa10..927c8be37813f8b47b66628d4c688b9ca84b49ed 100644
(file)
--- a/
wiretap/erf.c
+++ b/
wiretap/erf.c
@@
-538,7
+538,8
@@
static gboolean erf_write_phdr(wtap_dumper *wdh, int encap, const union wtap_pse
if(i == MAX_ERF_EHDR-1) ehdr[i*8] = ehdr[i*8] & 0x7F;
i++;
}while((ehdr[0] & 0x80) != 0 && i < MAX_ERF_EHDR);
- wtap_dump_file_write(wdh, ehdr, MAX_ERF_EHDR*i, err);
+ if (!wtap_dump_file_write(wdh, ehdr, MAX_ERF_EHDR*i, err))
+ return FALSE;
wdh->bytes_dumped += MAX_ERF_EHDR*i;
}