Fix hdb_create() HDB dbname parsing

This commit is contained in:
Nicolas Williams
2016-11-15 15:35:19 -06:00
parent 2c20a5a8bc
commit 995966f9d1

View File

@@ -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;
}