[gmime] Fixed header_parse() logic for invalid cases to properly reset state



commit 16c6ac0c903489b9dadfe361c6c47f6430de6e22
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date:   Mon Mar 13 08:14:32 2017 -0400

    Fixed header_parse() logic for invalid cases to properly reset state

 gmime/gmime-parser.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gmime/gmime-parser.c b/gmime/gmime-parser.c
index d04b67e..389fce7 100644
--- a/gmime/gmime-parser.c
+++ b/gmime/gmime-parser.c
@@ -922,6 +922,9 @@ header_parse (GMimeParser *parser, HeaderRaw **tail)
                priv->headerleft += priv->headerptr - priv->headerbuf;
                priv->headerptr = priv->headerbuf;
                
+               priv->rawleft += priv->rawptr - priv->rawbuf;
+               priv->rawptr = priv->rawbuf;
+               
                return;
        }
        


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]