diff options
| author | jvoisin | 2020-08-12 08:48:59 +0000 |
|---|---|---|
| committer | GitHub | 2020-08-12 10:48:59 +0200 |
| commit | a0d21a189cf04bb963dce93dcbd0bd9694584a0b (patch) | |
| tree | 59fa646b7536fbef7de42eb111c82df592262a12 /src/sp_crypt.c | |
| parent | f3360c4de72b6735bc5f5873dd671c2e56292ce6 (diff) | |
Allow empty configuration (#342)
This commit allows php to run (with a warning) if there
is no specified snuffleupagus configuration,
instead of refusing to start.
Diffstat (limited to 'src/sp_crypt.c')
| -rw-r--r-- | src/sp_crypt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_crypt.c b/src/sp_crypt.c index b353ebe..c57ac0b 100644 --- a/src/sp_crypt.c +++ b/src/sp_crypt.c | |||
| @@ -108,8 +108,8 @@ int decrypt_zval(zval *pDest, bool simulation, zend_hash_key *hash_key) { | |||
| 108 | return ZEND_HASH_APPLY_KEEP; | 108 | return ZEND_HASH_APPLY_KEEP; |
| 109 | } else { | 109 | } else { |
| 110 | sp_log_warn("cookie_encryption", | 110 | sp_log_warn("cookie_encryption", |
| 111 | "Something went wrong with the decryption of %s", | 111 | "Something went wrong with the decryption of %s", |
| 112 | hash_key ? ZSTR_VAL(hash_key->key) : "the session"); | 112 | hash_key ? ZSTR_VAL(hash_key->key) : "the session"); |
| 113 | efree(backup); | 113 | efree(backup); |
| 114 | return ZEND_HASH_APPLY_REMOVE; | 114 | return ZEND_HASH_APPLY_REMOVE; |
| 115 | } | 115 | } |
