White space changes.
[obnox/wireshark/wip.git] / tap-megacostat.c
index d4316daba7f0d35d833aa558c1931f6322696122..6e5186c688ea93b67c1dd632f3e211bdee56c5f9 100644 (file)
@@ -87,6 +87,12 @@ megacostat_init(const char *optarg, void* userdata _U_)
 
        megaco_ctx_track = prefs_find_preference(prefs_find_module("megaco"),"ctx_info");
        h248_ctx_track = prefs_find_preference(prefs_find_module("h248"),"ctx_info");
+
+       if (!megaco_ctx_track || !h248_ctx_track) {
+               /* No such preferences */
+               return;
+       }
+
        if (!*megaco_ctx_track->varp.boolp || !*h248_ctx_track->varp.boolp) {
                printf("Track Context option at Protocols -> MEGACO and Protocols -> H248 preferences\n");
                printf("has to be set to true to enable measurement of service response times.\n");