artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e23664d
)
Do not call freeaddrinfo() with a NULL parameter.
author
bluhm
<bluhm@openbsd.org>
Tue, 6 Feb 2018 14:45:52 +0000
(14:45 +0000)
committer
bluhm
<bluhm@openbsd.org>
Tue, 6 Feb 2018 14:45:52 +0000
(14:45 +0000)
OK jsing@
lib/libcrypto/bio/b_sock.c
patch
|
blob
|
history
diff --git
a/lib/libcrypto/bio/b_sock.c
b/lib/libcrypto/bio/b_sock.c
index
48f3983
..
cfa48c6
100644
(file)
--- a/
lib/libcrypto/bio/b_sock.c
+++ b/
lib/libcrypto/bio/b_sock.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: b_sock.c,v 1.6
7 2017/04/30 17:54:11 beck
Exp $ */
+/* $OpenBSD: b_sock.c,v 1.6
8 2018/02/06 14:45:52 bluhm
Exp $ */
/*
* Copyright (c) 2017 Bob Beck <beck@openbsd.org>
*
@@
-184,7
+184,8
@@
BIO_get_accept_socket(char *host, int bind_mode)
err:
free(str);
- freeaddrinfo(res);
+ if (res != NULL)
+ freeaddrinfo(res);
if ((ret == 0) && (s != -1)) {
close(s);
s = -1;