From 1f5ab2205792b4fc756d4663c090811ea75f7a46 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 17 Sep 2009 16:06:33 -0400 Subject: Don't try to use initgroups_dyn if not available Fixes a segfault seen in the wild with providers=files --- server/providers/proxy.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server') diff --git a/server/providers/proxy.c b/server/providers/proxy.c index 80a2a5500..dde019b90 100644 --- a/server/providers/proxy.c +++ b/server/providers/proxy.c @@ -2118,6 +2118,9 @@ static void proxy_get_account_info(struct be_req *breq) if (strchr(ar->filter_value, '*')) { return proxy_reply(breq, EINVAL, "Invalid filter value"); } + if (ctx->ops.initgroups_dyn == NULL) { + return proxy_reply(breq, ENODEV, "Initgroups call not supported"); + } subreq = get_initgr_send(breq, ev, ctx, sysdb, domain, ar->filter_value); if (!subreq) { -- cgit