Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
0b576acd
"G" did not exist on "3dbd6a8f4d7f3f27df3e3433fc2ab9fe1e7a873d"
Commit
0b576acd
authored
Oct 21, 2012
by
Davis King
Browse files
Made the network_address constructor do a little more input validation.
parent
56c6d33c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/sockets/sockets_extensions.cpp
dlib/sockets/sockets_extensions.cpp
+1
-1
No files found.
dlib/sockets/sockets_extensions.cpp
View file @
0b576acd
...
...
@@ -26,7 +26,7 @@ namespace dlib
{
std
::
istringstream
sin
(
full_address
);
sin
>>
*
this
;
if
(
!
sin
)
if
(
!
sin
||
sin
.
peek
()
!=
EOF
)
throw
invalid_network_address
(
"invalid network address: "
+
full_address
);
}
...
...
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