Fix: Don't crash when cached ef structure differs
authorDenis Kenzior <denkenz@gmail.com>
Mon, 5 Oct 2009 21:20:55 +0000 (16:20 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Mon, 5 Oct 2009 21:20:55 +0000 (16:20 -0500)
src/sim.c

index b2fbe26..907e4ce 100644 (file)
--- a/src/sim.c
+++ b/src/sim.c
@@ -1474,7 +1474,7 @@ static gboolean sim_op_check_cached(struct ofono_sim *sim)
        if (error_type != OFONO_ERROR_TYPE_NO_ERROR ||
                        structure != op->structure) {
                ret = TRUE;
-               cb(0, 0, 0, 0, 0, 0);
+               cb(0, 0, 0, 0, 0, op->userdata);
                goto cleanup;
        }