~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to lib/smtp.c

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2010-10-18 11:13:17 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20101018111317-9rkas34ecwtq0upn
Tags: upstream-7.21.2
ImportĀ upstreamĀ versionĀ 7.21.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
237
237
 
238
238
    for (;;) {
239
239
      while (len &&
240
 
       (*line == ' ' || *line == '\t' || *line == '\r' || *line == '\n')) {
 
240
             (*line == ' ' || *line == '\t' ||
 
241
              *line == '\r' || *line == '\n')) {
241
242
        line++;
242
243
        len--;
243
244
      }
246
247
        break;
247
248
 
248
249
      for (wordlen = 0; wordlen < len && line[wordlen] != ' ' &&
249
 
       line[wordlen] != '\t' && line[wordlen] != '\r' && line[wordlen] != '\n';)
 
250
             line[wordlen] != '\t' && line[wordlen] != '\r' &&
 
251
             line[wordlen] != '\n';)
250
252
        wordlen++;
251
253
 
252
254
      if(wordlen == 5 && !memcmp(line, "LOGIN", 5))
409
411
      state2 = SMTP_AUTHPASSWD;
410
412
      l = smtp_auth_login_user(conn, &initresp);
411
413
    }
412
 
    else
 
414
    else {
 
415
      infof(conn->data, "No known auth mechanisms supported!\n");
413
416
      result = CURLE_LOGIN_DENIED;      /* Other mechanisms not supported. */
 
417
    }
414
418
 
415
419
    if(!result) {
416
420
      if(!l)