aboutsummaryrefslogtreecommitdiff
path: root/ps.c
diff options
context:
space:
mode:
Diffstat (limited to 'ps.c')
-rw-r--r--ps.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ps.c b/ps.c
index d5be31e..1474a4b 100644
--- a/ps.c
+++ b/ps.c
@@ -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);