Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
VANet
Commits
cfeb69df
Commit
cfeb69df
authored
Jan 15, 2018
by
Dipl.-Ing. Jonas Stienen
Browse files
Adding conditional call to a pointer that might crash if connection is lost
parent
9fead1e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/VANetMessage.cpp
View file @
cfeb69df
...
...
@@ -195,6 +195,9 @@ void CVANetMessage::WriteAnswer()
try
{
if
(
!
m_pConnection
)
VISTA_THROW
(
"Seems like the VA connections is lost, can not write VA net message answer"
,
255
);
// It appears to be safe to transmit an entire buffer of arbitrary size on sender side
int
nRet
=
m_pConnection
->
WriteRawBuffer
(
m_oOutgoing
.
GetBuffer
(),
m_oOutgoing
.
GetBufferSize
()
);
m_pConnection
->
WaitForSendFinish
();
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment