Changeset: 3310685d8b5d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/3310685d8b5d
Modified Files:
gdk/gdk_string.c
Branch: Dec2025
Log Message:
Add error messages when digest fails.
diffs (19 lines):
diff --git a/gdk/gdk_string.c b/gdk/gdk_string.c
--- a/gdk/gdk_string.c
+++ b/gdk/gdk_string.c
@@ -9928,6 +9928,7 @@ BATaggrdigest(allocator *ma, BAT **bnp,
if (mdctx[gid] == NULL) {
mdctx[gid] = EVP_MD_CTX_new();
if (mdctx[gid] == NULL || !EVP_DigestInit(mdctx[gid],
md)) {
+ GDKerror("Could not initialize digest method
%s\n", digest);
goto bailout;
}
} else if (mdctx[gid] == (EVP_MD_CTX *) -1) {
@@ -9935,6 +9936,7 @@ BATaggrdigest(allocator *ma, BAT **bnp,
}
/* calculate digest including terminating NUL byte */
if (!EVP_DigestUpdate(mdctx[gid], s, strlen(s) + 1)) {
+ GDKerror("Could not update digest value.\n");
goto bailout;
}
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]