Fix compilation with `-DREF_PRINT`
[openssl.git] / crypto / dso / dso_lib.c
index f426be01a6964f860251e55c339cf7615e3458a3..f1b193bb3adafb497afb0f4682b68c6effc98850 100644 (file)
@@ -111,7 +111,7 @@ int DSO_up_ref(DSO *dso)
     if (CRYPTO_UP_REF(&dso->references, &i, dso->lock) <= 0)
         return 0;
 
-    REF_PRINT_COUNT("DSO", r);
+    REF_PRINT_COUNT("DSO", dso);
     REF_ASSERT_ISNT(i < 2);
     return ((i > 1) ? 1 : 0);
 }