~clint-fewbar/ubuntu/natty/drizzle/beta1-fixes

« back to all changes in this revision

Viewing changes to plugin/auth_pam/auth_pam.cc

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2011-03-15 10:41:18 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20110315104118-eaf0hvlytjdl4zrf
Tags: 2011.03.13-0ubuntu1
* New upstream release.
* Added slave plugin.
* Removed archive, blackhole and blitzdb plugins.
* Moved location of libdrizzle headers.
* Removed drizzleadmin manpage patch.
* Add drizzle_safe_write_string to symbols.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
{
61
61
  auth_pam_userinfo *userinfo = (auth_pam_userinfo*)appdata_ptr;
62
62
  struct pam_response *response = 0;
63
 
  int x;
64
63
 
65
64
  /* parameter sanity checking */
66
 
  if(!resp || !msg || !userinfo)
 
65
  if(not resp || not msg || not userinfo)
67
66
    return PAM_CONV_ERR;
68
67
 
69
68
  /* allocate memory to store response */
72
71
    return PAM_CONV_ERR;
73
72
 
74
73
  /* copy values */
75
 
  for(x= 0; x < num_msg; x++)
 
74
  for(int x= 0; x < num_msg; x++)
76
75
  {
77
76
    /* initialize to safe values */
78
77
    response[x].resp_retcode= 0;