Fix return value check of parse_uri

Signed-off-by: Marcelo Roberto Jimenez <mroberto@users.sourceforge.net>
This commit is contained in:
Peng 2013-11-08 09:39:45 +08:00 committed by Marcelo Roberto Jimenez
parent 1a28e8ff51
commit 908785fba7
2 changed files with 10 additions and 5 deletions

View File

@ -2,6 +2,10 @@
Version 1.6.19
*******************************************************************************
2013-11-08 Peng <howtofly(at)gmail.com>
Fix return value check of parse_uri.
2012-06-19 Yoichi NAKAYAMA <yoichi.nakayama(at)gmail.com>
SF Bug Tracker #118, Creator: T.Iwamoto

View File

@ -301,15 +301,16 @@ FindServiceEventURLPath( service_table * table,
if( ( table )
&&
( parse_uri
( eventURLPath, strlen( eventURLPath ), &parsed_url_in ) ) ) {
( parse_uri( eventURLPath,
strlen( eventURLPath ),
&parsed_url_in ) == HTTP_SUCCESS ) ) {
finger = table->serviceList;
while( finger ) {
if( finger->eventURL )
if( ( parse_uri
( finger->eventURL, strlen( finger->eventURL ),
&parsed_url ) ) ) {
&parsed_url ) == HTTP_SUCCESS ) ) {
if( !token_cmp
( &parsed_url.pathquery,
@ -354,13 +355,13 @@ FindServiceControlURLPath( service_table * table,
&&
( parse_uri
( controlURLPath, strlen( controlURLPath ),
&parsed_url_in ) ) ) {
&parsed_url_in ) == HTTP_SUCCESS ) ) {
finger = table->serviceList;
while( finger ) {
if( finger->controlURL )
if( ( parse_uri
( finger->controlURL, strlen( finger->controlURL ),
&parsed_url ) ) ) {
&parsed_url ) == HTTP_SUCCESS) ) {
if( !token_cmp
( &parsed_url.pathquery,
&parsed_url_in.pathquery ) )