diff options
| author | Gert Doering <gert@greenie.muc.de> | 2014-03-30 14:09:36 +0200 |
|---|---|---|
| committer | Gert Doering <gert@greenie.muc.de> | 2014-03-30 15:35:29 +0200 |
| commit | 1ba6f427d3ea361b9859cff9cbf4d1887240ed6f (patch) | |
| tree | 8c3fceb3c78c58da959bcae8df1d39e23d13d8b3 /sample/sample-plugins | |
| parent | f1da227574c6b2e3a75a38ac6f9a196be0ad3071 (diff) | |
Fix crash when using --inetd.
Change "local" argument to socket_do_listen() to avoid calling
"local->ai_addr" in the caller for the "do_listen == FALSE" case,
in which case it could be NULL.
Also, ensure "ai" is always initialized in socket_listen_accept() for
the "!remote_dynamic" case - otherwise it will sometimes(!) crash in
addrlist_match() later on.
Get rid of spurious operator precedence warning concerning
GETADDR_CACHE_MASK.
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <1396181376-32022-1-git-send-email-gert@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8412
Diffstat (limited to 'sample/sample-plugins')
0 files changed, 0 insertions, 0 deletions
