Fix comments.
[obnox/wireshark/wip.git] / tap-rpcprogs.c
index 10c6c2f7bbcfe5bce003a24ddf90e66787e80b42..ecf49016883a137825a7535c9b2d522c5b835ae0 100644 (file)
@@ -130,7 +130,7 @@ rpcprogs_packet(void *dummy1 _U_, packet_info *pinfo, epan_dissect_t *edt _U_, c
 
        
        /* we are only interested in reply packets */
-       if(ri->request){
+       if(ri->request || !rp){
                return 0;
        }
 
@@ -220,7 +220,7 @@ rpcprogs_init(const char *optarg _U_, void* userdata _U_)
        }
        already_enabled=1;
 
-       error_string=register_tap_listener("rpc", NULL, NULL, NULL, rpcprogs_packet, rpcprogs_draw);
+       error_string=register_tap_listener("rpc", NULL, NULL, 0, NULL, rpcprogs_packet, rpcprogs_draw);
        if(error_string){
                fprintf(stderr,"tshark: Couldn't register rpc,programs tap: %s\n",
                    error_string->str);