Mercurial > dropbear
comparison svr-session.c @ 14:5ae28f6101c1
Don't bother printing errno in exit messages (the code wasn't valid anyway)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 07 Jun 2004 11:36:07 +0000 |
parents | 7f77962de998 |
children | c1e5d9195402 |
comparison
equal
deleted
inserted
replaced
13:db2c8e6fb284 | 14:5ae28f6101c1 |
---|---|
181 /* before userauth */ | 181 /* before userauth */ |
182 snprintf(fmtbuf, sizeof(fmtbuf), | 182 snprintf(fmtbuf, sizeof(fmtbuf), |
183 "exit before auth: %s", format); | 183 "exit before auth: %s", format); |
184 } | 184 } |
185 | 185 |
186 if (errno != 0) { | |
187 /* XXX - is this valid? */ | |
188 snprintf(fmtbuf, sizeof(fmtbuf), "%s [%d %s]", fmtbuf, | |
189 errno, strerror(errno)); | |
190 } | |
191 | |
192 _dropbear_log(LOG_INFO, fmtbuf, param); | 186 _dropbear_log(LOG_INFO, fmtbuf, param); |
193 | 187 |
194 /* must be after we've done with username etc */ | 188 /* must be after we've done with username etc */ |
195 common_session_cleanup(); | 189 common_session_cleanup(); |
196 | 190 |