~ubuntu-branches/ubuntu/maverick/krb5/maverick

« back to all changes in this revision

Viewing changes to src/lib/krb4/kadm_net.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman, Russ Allbery, Sam Hartman
  • Date: 2008-08-21 10:41:41 UTC
  • mfrom: (11.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080821104141-a0f9c4o4cpo8xd0o
Tags: 1.6.dfsg.4~beta1-4
[ Russ Allbery ]
* Translation updates:
  - Swedish, thanks Martin Bagge.  (Closes: #487669, #491774)
  - Italian, thanks Luca Monducci.  (Closes: #493962)

[ Sam Hartman ]
* Translation Updates:
    - Dutch, Thanks Vincent Zweije, Closes: #495733

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include <signal.h>
32
32
#include <string.h>
33
33
#include <stdlib.h>
34
 
#include "krb5/autoconf.h"
 
34
#include "autoconf.h"
35
35
#ifdef HAVE_UNISTD_H
36
36
#include <unistd.h>
37
37
#endif
191
191
    cksum = quad_cksum(priv_pak, NULL, priv_len, 0, &sess_key);
192
192
#endif
193
193
    /* XXX cast unsigned->signed */
194
 
    if ((retdat = krb_mk_req_creds(&authent, &client_parm->creds, (long)cksum)) != NULL) {
 
194
    if ((retdat = krb_mk_req_creds(&authent, &client_parm->creds, (long)cksum)) != 0) {
195
195
        /* authenticator? */
196
196
        RET_N_FREE(retdat);
197
197
    }
228
228
    /* need to decode the ret_dat */
229
229
    if ((retdat = krb_rd_priv(*ret_dat, (u_long)*ret_siz, sess_sched,
230
230
                              (C_Block *)sess_key, &client_parm->admin_addr,
231
 
                              &client_parm->my_addr, &mdat)) != NULL)
 
231
                              &client_parm->my_addr, &mdat)) != 0)
232
232
        RET_N_FREE2(retdat);
233
233
    if (mdat.app_length < KADM_VERSIZE + 4)
234
234
        /* too short! */