diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-07-06 04:41:30 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-07-06 04:41:30 +0000 |
commit | 0907e8ed08b95d0b0d42921efa4caa5611f214f5 (patch) | |
tree | 02d885720d4ad5c27aded1119edd1034bcb953a9 /gnu/usr.bin | |
parent | 8200ad95fe0651a4c359dca7478842ffa42265ae (diff) |
dont deref NULL pointer in IPv6 pserver client operation.
From: Moritz Jodeit <moritz@jodeit.org>
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/cvs/src/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/cvs/src/client.c b/gnu/usr.bin/cvs/src/client.c index 5550deab0ea..e234af594fe 100644 --- a/gnu/usr.bin/cvs/src/client.c +++ b/gnu/usr.bin/cvs/src/client.c @@ -3913,11 +3913,11 @@ connect_to_pserver (tofdp, fromfdp, verify_only, do_gssapi) } if (sock < 0) { - getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf), + getnameinfo(res0->ai_addr, res0->ai_addrlen, hbuf, sizeof(hbuf), sbuf, sizeof(sbuf), NI_NUMERICHOST | NI_NUMERICSERV); error (1, 0, "connect to %s(%s):%s failed: %s", current_parsed_root->hostname, hbuf, sbuf, - port_number, SOCK_STRERROR (SOCK_ERRNO)); + SOCK_STRERROR (SOCK_ERRNO)); } /* Run the authorization mini-protocol before anything else. */ |