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

« back to all changes in this revision

Viewing changes to snmplib/check_varbind.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:
175
175
    if (NULL == var)
176
176
        return SNMP_ERR_GENERR;
177
177
    
178
 
    if ((rc = netsnmp_check_vb_type_and_size(var, ASN_INTEGER, sizeof(int))))
 
178
    if ((rc = netsnmp_check_vb_type_and_size(var, ASN_INTEGER, sizeof(long))))
179
179
        return rc;
180
180
    
181
181
    return netsnmp_check_vb_int_range(var, 1, 2);
189
189
    if (NULL == var)
190
190
        return SNMP_ERR_GENERR;
191
191
    
192
 
    if ((rc = netsnmp_check_vb_type_and_size(var, ASN_INTEGER, sizeof(int))))
 
192
    if ((rc = netsnmp_check_vb_type_and_size(var, ASN_INTEGER, sizeof(long))))
193
193
        return rc;
194
194
    
195
195
    if (*var->val.integer == RS_NOTREADY)
221
221
    if (NULL == var)
222
222
        return SNMP_ERR_GENERR;
223
223
    
224
 
    if ((rc = netsnmp_check_vb_type_and_size(var, ASN_INTEGER, sizeof(int))))
 
224
    if ((rc = netsnmp_check_vb_type_and_size(var, ASN_INTEGER, sizeof(long))))
225
225
        return rc;
226
226
    
227
227
    if ((rc = netsnmp_check_vb_int_range(var, SNMP_STORAGE_NONE,