projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52f751f
)
Fix double free in guess_from_received_header().
author
Dmitry Kurochkin
<dmitry.kurochkin@gmail.com>
Wed, 15 Jun 2011 11:12:12 +0000
(15:12 +0400)
committer
Carl Worth
<cworth@cworth.org>
Wed, 15 Jun 2011 14:08:18 +0000
(07:08 -0700)
Before the change, the last loop in guess_from_received_header()
did not reset domain and tld variables to NULL. This leads to
double free error in some cases and possibly other bugs.
notmuch-reply.c
patch
|
blob
|
history
diff --git
a/notmuch-reply.c
b/notmuch-reply.c
index 514bbc642654b8bcf3f352e6e9514ffe4ee7fb4b..dab69e664b6ee2f949b48106c15c8ea0dfd09e36 100644
(file)
--- a/
notmuch-reply.c
+++ b/
notmuch-reply.c
@@
-406,6
+406,7
@@
guess_from_received_header (notmuch_config_t *config, notmuch_message_t *message
/* Now extract the last two components of the MTA host name
* as domain and tld.
*/
+ domain = tld = NULL;
while ((ptr = strsep (&token, delim)) != NULL) {
if (*ptr == '\0')
continue;