~ubuntu-branches/ubuntu/vivid/dropbear/vivid

« back to all changes in this revision

Viewing changes to svr-auth.c

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2011-11-16 12:36:03 UTC
  • mfrom: (1.4.4)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: package-import@ubuntu.com-20111116123603-qkpk0p5e3gegporw
ImportĀ upstreamĀ versionĀ 2011.54

Show diffs side-by-side

added added

removed removed

Lines of Context:
249
249
                return DROPBEAR_FAILURE;
250
250
        }
251
251
 
252
 
        /* check for an empty password */
253
 
        if (ses.authstate.pw_passwd[0] == '\0') {
254
 
                TRACE(("leave checkusername: empty pword"))
255
 
                dropbear_log(LOG_WARNING, "User '%s' has blank password, rejected",
256
 
                                ses.authstate.pw_name);
257
 
                send_msg_userauth_failure(0, 1);
258
 
                return DROPBEAR_FAILURE;
259
 
        }
260
 
 
261
252
        TRACE(("shell is %s", ses.authstate.pw_shell))
262
253
 
263
254
        /* check that the shell is set */