Fix for return value of UpnpResolveURL and UpnpResolveURL2
SF Bug tracker, ID: 3469344 Submitted: dimmman ( dimmman ) - 2012-01-04 01:44:29 PST Details: Looking at the code (v1.6.14, upnptools.c) for UpnpResolveURL and UpnpResolveURL2 it shows that the ExitFunction: always returns UPNP_E_SUCCESS. I'm farily sure it's a simple mistake that should have been "return ret;" in both cases. Br, Jonny (cherry picked from commit 3b33626e2f34f73beb78fbe899abb05a47dec494)
This commit is contained in:
parent
96112229a5
commit
ea7610ca3c
13
ChangeLog
13
ChangeLog
@ -255,6 +255,19 @@ Version 1.8.0
|
||||
Version 1.6.15
|
||||
*******************************************************************************
|
||||
|
||||
2012-01-09 Marcelo Roberto Jimenez <mroberto(at)users.sourceforge.net>
|
||||
|
||||
SF Bug tracker, ID: 3469344
|
||||
Submitted: dimmman ( dimmman ) - 2012-01-04 01:44:29 PST
|
||||
Details: Looking at the code (v1.6.14, upnptools.c) for UpnpResolveURL
|
||||
and UpnpResolveURL2 it shows that the ExitFunction: always returns
|
||||
UPNP_E_SUCCESS.
|
||||
|
||||
I'm farily sure it's a simple mistake that should have been "return ret;"
|
||||
in both cases.
|
||||
|
||||
Br,
|
||||
Jonny
|
||||
|
||||
*******************************************************************************
|
||||
Version 1.6.14
|
||||
|
@ -157,7 +157,7 @@ int UpnpResolveURL(
|
||||
ret = UPNP_E_INVALID_URL;
|
||||
|
||||
ExitFunction:
|
||||
return UPNP_E_SUCCESS;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@ -177,7 +177,7 @@ int UpnpResolveURL2(
|
||||
ret = UPNP_E_INVALID_URL;
|
||||
|
||||
ExitFunction:
|
||||
return UPNP_E_SUCCESS;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user