Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stunserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Stunserver
Commits
04be7d44
Commit
04be7d44
authored
Jan 01, 2020
by
jselbie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiling warnings around ASSERTs doing pointer math
parent
b348619e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
stuncore/stunbuilder.cpp
stuncore/stunbuilder.cpp
+1
-1
stuncore/stunreader.cpp
stuncore/stunreader.cpp
+1
-1
No files found.
stuncore/stunbuilder.cpp
View file @
04be7d44
...
...
@@ -568,7 +568,7 @@ HRESULT CStunMessageBuilder::AddMessageIntegrityLongTerm(const char* pszUserName
pDst
+=
lenPassword
;
*
pDst
=
'\0'
;
// null terminate for debugging (this char doesn not get hashed
ASSERT
(
(
pDst
-
key
)
==
lenTotal
);
ASSERT
(
key
+
lenTotal
==
pDst
);
#ifndef __APPLE__
pResult
=
MD5
(
key
,
lenTotal
,
hash
);
...
...
stuncore/stunreader.cpp
View file @
04be7d44
...
...
@@ -342,7 +342,7 @@ HRESULT CStunMessageReader::ValidateMessageIntegrityLong(const char* pszUser, co
}
*
pDst
=
'0'
;
// null terminate for debugging (does not get hashed)
ASSERT
(
(
pDst
-
key
)
==
totallength
);
ASSERT
(
key
+
totallength
==
pDst
);
#ifndef __APPLE__
ChkIfA
(
NULL
==
MD5
(
key
,
totallength
,
hash
),
E_FAIL
);
...
...
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