From 03c858af5123295e5591cc824b77f39bfde5102e Mon Sep 17 00:00:00 2001 From: Marcelo Roberto Jimenez Date: Thu, 19 Aug 2010 13:39:44 +0000 Subject: [PATCH] Backport of svn rev. 558: HTTP version equal to 1.0 should failed as required by the UPnP certification tool. Patch submitted by Ronan Menard. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@559 119443c7-1b9e-41f8-b6fc-b9c35fce742c --- ChangeLog | 4 ++++ THANKS | 1 + upnp/src/genlib/net/http/httpparser.c | 4 +++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c380387..f66718a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -211,6 +211,10 @@ Version 1.8.0 Version 1.6.7 ******************************************************************************* +2010-08-19 Marcelo Jimenez + * HTTP version equal to 1.0 should failed as required by the UPnP + certification tool. Patch submitted by Ronan Menard. + 2010-06-28 Marcelo Jimenez SF Bug Tracker [ 3022490 ] String declaration fix for patch applied in 3007407 Hello, diff --git a/THANKS b/THANKS index 73eab8e..7054191 100644 --- a/THANKS +++ b/THANKS @@ -48,6 +48,7 @@ exempt of errors. - Peter Hartley - Rene Hexel - Robert Gingher (robsbox) +- Ronan Menard - Siva Chandran - Stéphane Corthésy - Steve Bresson diff --git a/upnp/src/genlib/net/http/httpparser.c b/upnp/src/genlib/net/http/httpparser.c index 566635b..1e41080 100644 --- a/upnp/src/genlib/net/http/httpparser.c +++ b/upnp/src/genlib/net/http/httpparser.c @@ -1545,7 +1545,9 @@ parser_parse_responseline( INOUT http_parser_t * parser ) if( num_scanned != 3 || hmsg->major_version < 0 || - hmsg->minor_version < 0 || hmsg->status_code < 0 ) { + /* HTTP version equals to 1.0 should fail as required by the + * UPnP certification tool */ + hmsg->minor_version < 1 || hmsg->status_code < 0 ) { // bad response line return PARSE_FAILURE; }