Skip to content

Commit

Permalink
Solved hidden merge conflicts between master and svn-branch-2.1
Browse files Browse the repository at this point in the history
ps.c - The feat_ipv6_transport patch set modifies struct openvpn_sockaddr by
       adding a union named 'addr' in commit 8335caf.

ssl.c - A needed } and #endif had been dropped by a mistake

Signed-off-by: David Sommerseth <[email protected]>
  • Loading branch information
dsommers committed Apr 26, 2011
1 parent 20b18fd commit 0b6450c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ps.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,10 @@ journal_add (const char *journal_dir, struct proxy_connection *pc, struct proxy_
char *jfn;
int fd;

slen = sizeof(from.sa);
dlen = sizeof(to.sa);
if (!getpeername (pc->sd, (struct sockaddr *) &from.sa, &slen)
&& !getsockname (cp->sd, (struct sockaddr *) &to.sa, &dlen))
slen = sizeof(from.addr.sa);
dlen = sizeof(to.addr.sa);
if (!getpeername (pc->sd, (struct sockaddr *) &from.addr.sa, &slen)
&& !getsockname (cp->sd, (struct sockaddr *) &to.addr.sa, &dlen))
{
const char *f = print_sockaddr_ex (&from, ":", PS_SHOW_PORT, &gc);
const char *t = print_sockaddr_ex (&to, ":", PS_SHOW_PORT, &gc);
Expand Down
3 changes: 3 additions & 0 deletions ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,9 @@ bool extract_x509_extension(X509 *cert, char *fieldname, char *out, int size)
sk_GENERAL_NAME_free (extensions);
}
return retval;
}
#endif /* ENABLE_X509ALTUSERNAME */

#ifdef ENABLE_X509_TRACK
/*
* setenv_x509_track function -- save X509 fields to environment,
Expand Down

0 comments on commit 0b6450c

Please sign in to comment.