Argh! New bug discovered

Matt Brookings <[email protected]> Wed, 05 Mar 2008 13:21:31 -0600
Newsgroups gmane.mail.eps
Organization Inter7 Internet Technologies, Inc.
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Amazingly, in the millions of emails EPS has seen, it's never gotten one
that had a multipart message with no boundary.  Anyway, here is a quick diff
for mime.c that adds a check to make sure eps->b is allocated.

Stupid mistake.  I blame lack of coffee.   Does anyone even monitor this list
anymore? :)

I'll be releasing a 1.8 in the coming weeks with this fix as well as some other
potential features.

148,152c148
<   p = boundary_fetch(eps, eps->b->cdepth);
<   if (p) {
<      eps->m->boundary = mstrdup(p);
<      eps->m->depth    = eps->b->cdepth;
<   }
- ---
>   eps->m->depth = -1;
154,155c150,156
<   else
<      eps->m->depth    = -1;
- ---
>   if (eps->b) {
>      p = boundary_fetch(eps, eps->b->cdepth);
>      if (p) {
>         eps->m->boundary = mstrdup(p);
>         eps->m->depth    = eps->b->cdepth;
>      }
>   }

- --
/*
    Matt Brookings <[email protected]>       GnuPG Key ABA26FE7
    Software developer                     Systems technician
    Inter7 Internet Technologies, Inc.     (815)776-9465
*/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org

iD8DBQFHzvK7Yaj0Mauib+cRAgPDAJ9cW2OVZqZc2hPXUvZP+wDHbf1QjgCgoLEZ
w2VSAlYqP2q3oXiW1uqlc30=
=5Pz3
-----END PGP SIGNATURE-----