Comparing version 1.1.14 to 1.1.15
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
42
index.js
@@ -914,27 +914,27 @@ | ||
var message = new ResponseMessage (buffer); | ||
} catch (error) { | ||
this.emit("error", error); | ||
} | ||
var req = this.unregisterRequest (message.pdu.id); | ||
if (! req) | ||
return; | ||
var req = this.unregisterRequest (message.pdu.id); | ||
if (! req) | ||
return; | ||
try { | ||
if (message.version != req.message.version) { | ||
req.responseCb (req, new ResponseInvalidError ("Version in request '" | ||
+ req.message.version + "' does not match version in " | ||
+ "response '" + message.version)); | ||
} else if (message.community != req.message.community) { | ||
req.responseCb (req, new ResponseInvalidError ("Community '" | ||
+ req.message.community + "' in request does not match " | ||
+ "community '" + message.community + "' in response")); | ||
} else if (message.pdu.type == PduType.GetResponse) { | ||
req.onResponse (req, message); | ||
} else { | ||
req.responseCb (req, new ResponseInvalidError ("Unknown PDU type '" | ||
+ message.pdu.type + "' in response")); | ||
try { | ||
if (message.version != req.message.version) { | ||
req.responseCb (new ResponseInvalidError ("Version in request '" | ||
+ req.message.version + "' does not match version in " | ||
+ "response '" + message.version)); | ||
} else if (message.community != req.message.community) { | ||
req.responseCb (new ResponseInvalidError ("Community '" | ||
+ req.message.community + "' in request does not match " | ||
+ "community '" + message.community + "' in response")); | ||
} else if (message.pdu.type == PduType.GetResponse) { | ||
req.onResponse (req, message); | ||
} else { | ||
req.responseCb (new ResponseInvalidError ("Unknown PDU type '" | ||
+ message.pdu.type + "' in response")); | ||
} | ||
} catch (error) { | ||
req.responseCb (error); | ||
} | ||
} catch (error) { | ||
req.responseCb (req, error); | ||
this.emit("error", error); | ||
} | ||
@@ -941,0 +941,0 @@ }; |
{ | ||
"name": "net-snmp", | ||
"version": "1.1.14", | ||
"version": "1.1.15", | ||
"description": "JavaScript implementation of the Simple Network Management Protocol (SNMP)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1227,2 +1227,9 @@ | ||
## Version 1.1.15 - 08/02/2016 | ||
* When parsing an invalid response an exception in message parsing does not | ||
interupt response processing | ||
* Incorrectly passing `req` object in call to `req.responseCb` when handling | ||
errors during response processing | ||
# Roadmap | ||
@@ -1229,0 +1236,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
647409
1270