Scotty-2.0.1 bugs in snmpRequest.c

Graeme McKerrell (graemem@pdd.3com.com)
Wed, 21 Feb 1996 10:14:35 +0000

Having been hammering 'scotty' quite hard in using it for agent testing the
following bugs have been hilighted in "snmpRequest.c":
NB these are for scotty-2.0.1 so I'm not sure whether they have
already been spotted and fixed in 2.0.2

The following is the output of 'diff snmpRequest.c snmpRequest.c.old'
--------------------------------------------------------------------------------
21,33d20
< /*****************************************************************
< * Date Author Reason
< * ---- ------ ------
< * 26/01/96 Graeme McKerrell Added an exit condition for when 'packet'
< * has been set to NULL to prevent seg violation
< * (fault shown by "snmp0 set {{{}} sysDescr}"
< *
< * 09/11/95 Graeme McKerrell Added a closing quote in EncodePDU
< * function for "invalid arg...expecting..."
< * If the result is concequently used in a
< * variable the unclosed quotes can cause
< * syntax problems.
< * (fault shown by "snmp0 get {hgshfgs}")
< *****************************************************************/
806c793
< "\" expecting OBJECT IDENTIFIER",

---
>                                 ": expecting OBJECT IDENTIFIER",
1006,1011d992
<       /*
<        *  If we have a NULL value for packet then there must have been an
<        *  error.
<        */
<       if (!packet)
<         break;
--------------------------------------------------------------------------------