]> andersk Git - openssh.git/blobdiff - canohost.c
- (djm) Sync with OpenBSD:
[openssh.git] / canohost.c
index 98ce9744f105bf0480d1a6825bdf0f20e2b1ac71..6d36dd11a10bec9730ff30f66a85d5cceab647ac 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: canohost.c,v 1.15 2000/09/07 21:13:37 markus Exp $");
+RCSID("$OpenBSD: canohost.c,v 1.16 2000/10/21 17:04:22 markus Exp $");
 
 #include "packet.h"
 #include "xmalloc.h"
@@ -147,7 +147,7 @@ check_ip_options:
                else
                        ipproto = IPPROTO_IP;
                option_size = sizeof(options);
-               if (getsockopt(0, ipproto, IP_OPTIONS, (char *) options,
+               if (getsockopt(socket, ipproto, IP_OPTIONS, (char *) options,
                    &option_size) >= 0 && option_size != 0) {
                        cp = text;
                        /* Note: "text" buffer must be at least 3x as big as options. */
This page took 0.040154 seconds and 4 git commands to generate.