diff --git a/libgpo/gpo_ldap.c b/libgpo/gpo_ldap.c index fec00053b49..f087203f28a 100644 --- a/libgpo/gpo_ldap.c +++ b/libgpo/gpo_ldap.c @@ -474,7 +474,7 @@ ADS_STATUS ads_get_gpo(ADS_STRUCT *ads, const char *guid_name, struct GROUP_POLICY_OBJECT *gpo) { - ADS_STATUS status; + ADS_STATUS status = ADS_ERROR(LDAP_NO_SUCH_OBJECT); LDAPMessage *res = NULL; char *dn; const char *filter;