Change ERR_add_error_[v]data to append
[oweals/openssl.git] / providers / fips / fipsprov.c
index 9f9b4289ac5a8ce11d276e6854c8d5a7ac08a946..a30ece8e27d1852bf3e20be15034239550ee8db6 100644 (file)
@@ -326,11 +326,13 @@ void ERR_put_error(int lib, int func, int reason, const char *file, int line)
      * so we'll need to come up with something else for them.
      */
     c_put_error(lib, func, reason, file, line);
+    ERR_add_error_data(1, "(in the FIPS module)");
 }
 
 void ERR_add_error_data(int num, ...)
 {
     va_list args;
+
     va_start(args, num);
     ERR_add_error_vdata(num, args);
     va_end(args);