Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
savoirfairelinux
jami-daemon
Commits
144d6e23
Commit
144d6e23
authored
Apr 12, 2012
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* #9782: sdes_negotiator: fix iterator usage and set dangling pointers to 0
parent
94a92a0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
daemon/src/sip/sdes_negotiator.cpp
daemon/src/sip/sdes_negotiator.cpp
+5
-4
No files found.
daemon/src/sip/sdes_negotiator.cpp
View file @
144d6e23
...
...
@@ -178,7 +178,7 @@ bool SdesNegotiator::negotiate()
std
::
vector
<
CryptoAttribute
*>
cryptoAttributeVector
=
parse
();
std
::
vector
<
CryptoAttribute
*>::
iterator
iter_offer
=
cryptoAttributeVector
.
begin
();
std
::
vector
<
CryptoSuiteDefinition
>::
iterator
iter_local
=
localCapabilities_
.
begin
();
std
::
vector
<
CryptoSuiteDefinition
>::
const_
iterator
iter_local
=
localCapabilities_
.
begin
();
bool
negotiationSuccess
=
false
;
...
...
@@ -197,10 +197,11 @@ bool SdesNegotiator::negotiate()
authTagLength_
=
cryptoSuite_
.
substr
(
cryptoSuite_
.
size
()
-
2
,
2
);
}
iter_local
++
;
++
iter_local
;
}
delete
(
*
iter_offer
);
iter_offer
++
;
delete
*
iter_offer
;
*
iter_offer
=
0
;
++
iter_offer
;
}
}
catch
(
const
ParseError
&
exception
)
{
...
...
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