Close ref. Patch as posted to the list by Apple.
authoraland <aland>
Fri, 12 Oct 2007 16:08:15 +0000 (16:08 +0000)
committeraland <aland>
Fri, 12 Oct 2007 16:08:15 +0000 (16:08 +0000)
src/modules/rlm_mschap/opendir.c

index 080b795..d451bf8 100644 (file)
@@ -241,6 +241,8 @@ int od_mschap_auth(REQUEST *request, VALUE_PAIR *challenge,
                DEBUG2("rlm_osx_od: ds_mschap_auth: getUserNodeRef failed");
                if (username_string != NULL)
                        free(username_string);
+               if (dsRef != 0)
+                       dsCloseDirService(dsRef);
                return status;
        }