Commit 1d18adb
fix: add NULL check for c->funcs before dereferencing in redisReconnect
redisReconnect dereferences c->funcs->free_privctx without checking
if c->funcs is NULL, even though the very next block (line 780)
correctly guards c->funcs before accessing c->funcs->close.
This can cause a NULL pointer dereference crash if redisReconnect
is called on a context where funcs has not been set.
Fixes #13151 parent e834b57 commit 1d18adb
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
775 | | - | |
| 775 | + | |
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
| |||
0 commit comments