mirror of
https://repo.or.cz/socat.git
synced 2025-07-27 21:15:37 +00:00
OPENSSL-CONNECT with bind option failed on some systems with Invalid argument
This commit is contained in:
parent
1898116eca
commit
257834e501
3 changed files with 57 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/* source: xio-openssl.c */
|
||||
/* Copyright Gerhard Rieger 2002-2011 */
|
||||
/* Copyright Gerhard Rieger */
|
||||
/* Published under the GNU General Public License V.2, see file COPYING */
|
||||
|
||||
/* this file contains the implementation of the openssl addresses */
|
||||
|
@ -243,7 +243,7 @@ static int
|
|||
/* this cannot fork because we retrieved fork option above */
|
||||
result =
|
||||
_xioopen_connect(xfd,
|
||||
needbind?(struct sockaddr *)us:NULL, sizeof(*us),
|
||||
needbind?(struct sockaddr *)us:NULL, uslen,
|
||||
(struct sockaddr *)them, themlen,
|
||||
opts, pf, socktype, ipproto, lowport, level);
|
||||
switch (result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue