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

« back to all changes in this revision

Viewing changes to snmplib/keytools.c

  • Committer: Bazaar Package Importer
  • Author(s): Jochen Friedrich
  • Date: 2010-06-10 18:02:54 UTC
  • mto: (1.4.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100610180254-6ezvupl2clicwdqf
ImportĀ upstreamĀ versionĀ 5.4.3~dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
401
401
    /*
402
402
     * Sanity check.
403
403
     */
 
404
    if (!kcstring || !kcstring_len)
 
405
        return SNMPERR_GENERR;
 
406
 
404
407
    if (!hashtype || !oldkey || !newkey || !kcstring || !kcstring_len
405
408
        || (oldkey_len <= 0) || (newkey_len <= 0) || (*kcstring_len <= 0)
406
409
        || (hashtype_len != USM_LENGTH_OID_TRANSFORM)) {