=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/auth-options.c,v retrieving revision 1.33.2.1 retrieving revision 1.34 diff -u -r1.33.2.1 -r1.34 --- src/usr.bin/ssh/auth-options.c 2006/09/30 04:06:50 1.33.2.1 +++ src/usr.bin/ssh/auth-options.c 2006/03/19 18:51:18 1.34 @@ -1,4 +1,3 @@ -/* $OpenBSD: auth-options.c,v 1.33.2.1 2006/09/30 04:06:50 brad Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -10,30 +9,18 @@ * called by a name other than "ssh" or "Secure Shell". */ -#include +#include "includes.h" -#include -#include -#include -#include -#include - #include "xmalloc.h" #include "match.h" #include "log.h" #include "canohost.h" -#include "buffer.h" #include "channels.h" #include "auth-options.h" #include "servconf.h" #include "misc.h" -#include "key.h" -#include "hostfile.h" -#include "auth.h" -#ifdef GSSAPI -#include "ssh-gss.h" -#endif #include "monitor_wrap.h" +#include "auth.h" /* Flags set authorized_keys flags */ int no_port_forwarding_flag = 0; @@ -143,7 +130,7 @@ forced_command = NULL; goto bad_option; } - forced_command[i] = '\0'; + forced_command[i] = 0; auth_debug_add("Forced command: %.900s", forced_command); opts++; goto next_option; @@ -175,7 +162,7 @@ xfree(s); goto bad_option; } - s[i] = '\0'; + s[i] = 0; auth_debug_add("Adding to environment: %.900s", s); debug("Adding to environment: %.900s", s); opts++; @@ -212,7 +199,7 @@ xfree(patterns); goto bad_option; } - patterns[i] = '\0'; + patterns[i] = 0; opts++; if (match_host_and_ip(remote_host, remote_ip, patterns) != 1) { @@ -257,7 +244,7 @@ xfree(patterns); goto bad_option; } - patterns[i] = '\0'; + patterns[i] = 0; opts++; p = patterns; host = hpdelim(&p); @@ -305,7 +292,7 @@ forced_tun_device = -1; goto bad_option; } - tun[i] = '\0'; + tun[i] = 0; forced_tun_device = a2tun(tun, NULL); xfree(tun); if (forced_tun_device == SSH_TUNID_ERR) {