diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-07-04 00:12:53 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-07-04 00:12:53 +0000 |
commit | 5a9d0eaba699968ae29bf560e4546d09edcb440d (patch) | |
tree | b92b775ccc294301f31addb97cccf3275481265e /auth2.c | |
parent | 810af968b8c36cb5fb960483d051ba0c7805296a (diff) |
- deraadt@cvs.openbsd.org 2002/06/30 21:54:16
[auth2.c session.c sshd.c]
lint asks that we use names that do not overlap
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: auth2.c,v 1.93 2002/05/31 11:35:15 markus Exp $"); | 26 | RCSID("$OpenBSD: auth2.c,v 1.94 2002/06/30 21:54:16 deraadt Exp $"); |
27 | 27 | ||
28 | #include "ssh2.h" | 28 | #include "ssh2.h" |
29 | #include "xmalloc.h" | 29 | #include "xmalloc.h" |
@@ -102,7 +102,7 @@ input_service_request(int type, u_int32_t seq, void *ctxt) | |||
102 | { | 102 | { |
103 | Authctxt *authctxt = ctxt; | 103 | Authctxt *authctxt = ctxt; |
104 | u_int len; | 104 | u_int len; |
105 | int accept = 0; | 105 | int acceptit = 0; |
106 | char *service = packet_get_string(&len); | 106 | char *service = packet_get_string(&len); |
107 | packet_check_eom(); | 107 | packet_check_eom(); |
108 | 108 | ||
@@ -111,14 +111,14 @@ input_service_request(int type, u_int32_t seq, void *ctxt) | |||
111 | 111 | ||
112 | if (strcmp(service, "ssh-userauth") == 0) { | 112 | if (strcmp(service, "ssh-userauth") == 0) { |
113 | if (!authctxt->success) { | 113 | if (!authctxt->success) { |
114 | accept = 1; | 114 | acceptit = 1; |
115 | /* now we can handle user-auth requests */ | 115 | /* now we can handle user-auth requests */ |
116 | dispatch_set(SSH2_MSG_USERAUTH_REQUEST, &input_userauth_request); | 116 | dispatch_set(SSH2_MSG_USERAUTH_REQUEST, &input_userauth_request); |
117 | } | 117 | } |
118 | } | 118 | } |
119 | /* XXX all other service requests are denied */ | 119 | /* XXX all other service requests are denied */ |
120 | 120 | ||
121 | if (accept) { | 121 | if (acceptit) { |
122 | packet_start(SSH2_MSG_SERVICE_ACCEPT); | 122 | packet_start(SSH2_MSG_SERVICE_ACCEPT); |
123 | packet_put_cstring(service); | 123 | packet_put_cstring(service); |
124 | packet_send(); | 124 | packet_send(); |