GH-17 invalid exop mountpoints crash server
This commit is contained in:
parent
be3d5fa7fa
commit
a515652ac7
|
@ -733,7 +733,7 @@ Server.prototype._getHandlerChain = function(req) {
|
|||
|
||||
return {
|
||||
backend: routes.backend,
|
||||
handlers: route[op] || [defaultExopHandler]
|
||||
handlers: route[op] || [noExOpHandler]
|
||||
};
|
||||
} else if (req.protocolOp === Protocol.LDAP_REQ_UNBIND) {
|
||||
function getUnbindChain() {
|
||||
|
|
|
@ -229,6 +229,14 @@ test('exop invalid', function(t) {
|
|||
});
|
||||
|
||||
|
||||
test('bogus exop (GH-17)', function(t) {
|
||||
client.exop('cn=root', function(err, value) {
|
||||
t.ok(err);
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
test('modify success', function(t) {
|
||||
var change = new Change({
|
||||
type: 'Replace',
|
||||
|
|
Loading…
Reference in New Issue