diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-03 02:39:06 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-03 02:39:06 +0800 |
commit | 87ef8ec74eb5fff34d7951e1f56120e4577ba7d2 (patch) | |
tree | 990e9c9def50c84b7376c1ae087ab8a86c5ba7eb /src/host | |
parent | bc1e9354f7020f12abf0bcea33f43f8d80432e2d (diff) |
sim.c: Fix NULL pointer dereference found by clang.
Diffstat (limited to 'src/host')
-rw-r--r-- | src/host/layer23/src/common/sim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/layer23/src/common/sim.c b/src/host/layer23/src/common/sim.c index 7c4183fe..3ef3cf84 100644 --- a/src/host/layer23/src/common/sim.c +++ b/src/host/layer23/src/common/sim.c @@ -153,7 +153,7 @@ void gsm_sim_reply(struct osmocom_ms *ms, uint8_t result_type, uint8_t *result, /* if no handler, or no callback, just free the job */ sh = (struct sim_hdr *)msg->data; handler = sim_get_handler(sim, sh->handle); - if (!handler && !handler->cb) { + if (!handler || !handler->cb) { LOGP(DSIM, LOGL_INFO, "no callback or no handler, " "dropping result\n"); msgb_free(sim->job_msg); |