From b170e1bfbea5156d16fb9b6c16d196af49ebf4b4 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Mon, 20 Dec 2004 12:41:53 +0000 Subject: [PATCH] Fixed endless loop with handcrafted POST header SVN revision: 1152 --- src/elogd.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index 459cacee..2d730ad8 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.524 2004/12/20 12:41:53 midas + Fixed endless loop with handcrafted POST header + Revision 1.523 2004/12/18 16:18:58 midas Changed locale to 'C' for email header date @@ -19747,10 +19750,10 @@ void decode_post(LOGBOOK * lbs, char *string, char *boundary, int length) while (*string == '-' || *string == '\n' || *string == '\r') string++; - } + } else + return; /* invalid request */ - } - while ((int) (string - pinit) < length); + } while ((int) (string - pinit) < length); interprete(lbs->name, ""); }