Skip to content

Commit 3fff74a

Browse files
committed
sodium ext: If sodium_init() returns 1, this is fine.
We actually want to do this so that multiple extensions using libsodium can be loaded simultaneously.
1 parent 708349e commit 3fff74a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/sodium/libsodium.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ PHP_MINIT_FUNCTION(sodium)
341341
{
342342
zend_class_entry ce;
343343

344-
if (sodium_init() != 0) {
344+
if (sodium_init() < 0) {
345345
zend_error(E_ERROR, "sodium_init()");
346346
}
347347

0 commit comments

Comments
 (0)