Fix warning with DEBUG_SAFESTACK
authorDr. Stephen Henson <steve@openssl.org>
Thu, 10 May 2001 00:09:43 +0000 (00:09 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 10 May 2001 00:09:43 +0000 (00:09 +0000)
crypto/ui/ui_lib.c

index 132236fe65095edaa3fce4e18328ee1ac54f4268..cf87f06a6ae308274ac267822c4b8887880b6a15 100644 (file)
@@ -92,9 +92,8 @@ UI *UI_new_method(const UI_METHOD *method)
        return ret;
        }
 
        return ret;
        }
 
-static void free_string(void *data)
+static void free_string(UI_STRING *uis)
        {
        {
-       UI_STRING *uis = (UI_STRING *)data;
        if (uis->flags & OUT_STRING_FREEABLE)
                OPENSSL_free((char *)uis->out_string);
        OPENSSL_free(uis);
        if (uis->flags & OUT_STRING_FREEABLE)
                OPENSSL_free((char *)uis->out_string);
        OPENSSL_free(uis);