From 995966f9d12476e92ba2d8500549ef43850695ea Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Tue, 15 Nov 2016 15:35:19 -0600 Subject: [PATCH] Fix hdb_create() HDB dbname parsing --- lib/hdb/hdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hdb/hdb.c b/lib/hdb/hdb.c index a616eaa5e..31a8fa1e2 100644 --- a/lib/hdb/hdb.c +++ b/lib/hdb/hdb.c @@ -365,7 +365,7 @@ callback(krb5_context context, const void *plug, void *plugctx, void *userctx) struct cb_s *cb_ctx = (struct cb_s *)userctx; if (strncmp(cb_ctx->filename, h->prefix, strlen(h->prefix)) == 0) { - cb_ctx->residual = cb_ctx->filename + strlen(h->prefix); + cb_ctx->residual = cb_ctx->filename + strlen(h->prefix) + 1; cb_ctx->h = h; return 0; }