Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
12a6e42e
Commit
12a6e42e
authored
Apr 02, 2013
by
Yann Diorcet
Browse files
Allow uPnP 1.0 uuid
parent
700b41b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
coreapi/upnp.c
coreapi/upnp.c
+2
-2
No files found.
coreapi/upnp.c
View file @
12a6e42e
...
...
@@ -31,7 +31,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define UPNP_CORE_READY_CHECK 1
#define UPNP_CORE_RETRY_DELAY 4
#define UPNP_CALL_RETRY_DELAY 1
#define UPNP_UUID_LEN
32
#define UPNP_UUID_LEN
128
#define UPNP_UUID_LEN_STR UPNP_TOSTRING(UPNP_UUID_LEN)
/*
* uPnP Definitions
...
...
@@ -1236,7 +1236,7 @@ static void linphone_upnp_config_list_port_bindings_cb(const char *entry, struct
bool_t
valid
=
TRUE
;
UpnpPortBinding
*
port
;
ret
=
sscanf
(
entry
,
"%"
UPNP_UUID_LEN_STR
"
s
-%3s-%i-%i"
,
device_id
,
protocol_str
,
&
external_port
,
&
local_port
);
ret
=
sscanf
(
entry
,
"%"
UPNP_UUID_LEN_STR
"
[^-]
-%3s-%i-%i"
,
device_id
,
protocol_str
,
&
external_port
,
&
local_port
);
if
(
ret
==
4
)
{
// Handle only wanted device bindings
if
(
device_id
!=
NULL
&&
strcmp
(
cookie
->
device_id
,
device_id
)
!=
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment