Permalink
Browse files

GH-17 invalid exop mountpoints crash server

  • Loading branch information...
1 parent be3d5fa commit a515652ac7bd1877672bf7e8e296d3dc501b9c2d @mcavage committed Sep 23, 2011
Showing with 9 additions and 1 deletion.
  1. +1 −1 lib/server.js
  2. +8 −0 tst/client.test.js
View
@@ -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() {
View
@@ -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',

0 comments on commit a515652

Please sign in to comment.