~ubuntu-branches/ubuntu/precise/slurm-llnl/precise

« back to all changes in this revision

Viewing changes to src/plugins/auth/munge/auth_munge.c

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2011-04-08 11:21:17 UTC
  • mfrom: (3.3.16 sid)
  • Revision ID: james.westby@ubuntu.com-20110408112117-nfnyq9dtm55hqoaw
Tags: 2.2.4-1
* New upstream releases 
* Cleaning spare file and directories, not belonging to the sources
  generated by the building process and not removed by distclean.
  Added debian/clean with spare files and rm -rf inside debian/rules
  for directories.
* Added new packages libslurm-perl, libslurmdb-perl, slurm-llnl-torque
  (Closes: #575822) thanks to Julien Blache

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************\
2
2
 *  auth_munge.c - SLURM auth implementation via Chris Dunlap's Munge
3
 
 *  $Id: auth_munge.c 19789 2010-03-18 18:04:15Z jette $
 
3
 *  $Id: auth_munge.c 21178 2010-09-17 23:16:02Z jette $
4
4
 *****************************************************************************
5
5
 *  Copyright (C) 2002-2007 The Regents of the University of California.
6
6
 *  Copyright (C) 2008-2009 Lawrence Livermore National Security.
507
507
        }
508
508
 
509
509
    again:
 
510
        c->buf = NULL;
510
511
        if ((e = munge_decode(c->m_str, ctx, &c->buf, &c->len, &c->uid,
511
512
                              &c->gid))) {
 
513
                if (c->buf) {
 
514
                        free(c->buf);
 
515
                        c->buf = NULL;
 
516
                }
512
517
                if ((e == EMUNGE_SOCKET) && retry--) {
513
518
                        error ("Munge decode failed: %s (retrying ...)",
514
519
                                munge_ctx_strerror(ctx));