~ubuntu-branches/ubuntu/trusty/net-snmp/trusty

« back to all changes in this revision

Viewing changes to snmplib/snmp_secmod.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-12-08 14:59:50 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20071208145950-u1tykhpw56nyzqik
Tags: 5.4.1~dfsg-4ubuntu1
* Merge from debian unstable.
* Remaining Ubuntu changes:
  - Remove stop links from rc0 and rc6
  - Munge Maintainer field as per spec.
* Ubuntu changes dropped:
  - Symlink common files between the packages, CDBS ought to handle that
    for us automatically.
* The latest Debian changes has dropped history from the changelog. Slot in
  the Ubuntu changes as best I can. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
    for (sptr = registered_services, lptr = NULL; sptr;
108
108
         lptr = sptr, sptr = sptr->next) {
109
109
        if (sptr->securityModel == secmod) {
110
 
            lptr->next = sptr->next;
 
110
            if ( lptr )
 
111
                lptr->next = sptr->next;
 
112
            else
 
113
                registered_services = sptr->next;
111
114
            SNMP_FREE(sptr->secDef);
112
115
            SNMP_FREE(sptr);
113
116
            return SNMPERR_SUCCESS;