Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
4049cc89
Commit
4049cc89
authored
10 years ago
by
Guillaume Roguez
Committed by
Stepan Salenikovich
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
upnp: fix null deferencing during mapping
Refs #68811 Change-Id: I65e63c4b2998ea1c76041e6ee24bb698715d5fca
parent
412cdcc4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
daemon/src/upnp/upnp_control.cpp
+3
-2
3 additions, 2 deletions
daemon/src/upnp/upnp_control.cpp
with
3 additions
and
2 deletions
daemon/src/upnp/upnp_control.cpp
+
3
−
2
View file @
4049cc89
...
...
@@ -82,12 +82,13 @@ Controller::addAnyMapping(uint16_t port_desired,
Mapping
mapping
=
upnpContext_
->
addAnyMapping
(
port_desired
,
port_local
,
type
,
use_same_port
,
unique
);
if
(
mapping
)
{
auto
usedPort
=
mapping
.
getPortExternal
();
if
(
port_used
)
*
port_used
=
mapping
.
getPortExternal
()
;
*
port_used
=
usedPort
;
/* add to map */
auto
&
instanceMappings
=
type
==
PortType
::
UDP
?
udpMappings_
:
tcpMappings_
;
instanceMappings
.
emplace
(
*
port_
used
,
std
::
move
(
mapping
));
instanceMappings
.
emplace
(
used
Port
,
std
::
move
(
mapping
));
return
true
;
}
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment