diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-12-07 20:03:24 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-12-07 20:03:24 +0800 |
commit | a6b2eeb190f19b00931be76d43538d03178db728 (patch) | |
tree | 2675dad90cc42588028066f3c1794a6ee52a5d60 | |
parent | e12ff23e7d530613f7e876d366b52d04072a0e06 (diff) |
Fix null pointer dereference removing listeners
-rw-r--r-- | listener.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -139,7 +139,7 @@ struct Listener * get_listener(int type, const void* typedata, struct Listener* listener; for (i = 0, listener = ses.listeners[i]; i < ses.listensize; i++) { - if (listener->type == type + if (listener && listener->type == type && match(typedata, listener->typedata)) { return listener; } |