diff --git a/tests/simulator-ng.pl b/tests/simulator-ng.pl
index 7288a66f6..11adef966 100755
--- a/tests/simulator-ng.pl
+++ b/tests/simulator-ng.pl
@@ -676,7 +676,7 @@ SDP
 		rand() > .5 and $$dict{'to-tag'} = $$B{tag};
 	}
 	elsif ($op eq 'answer') {
-		$dict->{'from-tag'} = $$B{tag},
+		$dict->{'from-tag'} = $$B{tag};
 		$dict->{'to-tag'} = $$A{tag};
 	}
 	if (!$LAZY
diff --git a/utils/kernel-intercept-dump.pl b/utils/kernel-intercept-dump.pl
index 5a951a93d..c5142fd06 100755
--- a/utils/kernel-intercept-dump.pl
+++ b/utils/kernel-intercept-dump.pl
@@ -187,12 +187,12 @@ sub setup {
 	if ($COMBINE == 0) {
 		$callbacks{stream_setup} = \&stream_pcap;
 		$callbacks{stream_close} = \&stream_pcap_close;
-		$callbacks{packet} = \&stream_packet,
+		$callbacks{packet} = \&stream_packet;
 	}
 	elsif ($COMBINE == 1) {
 		$callbacks{call_setup} = \&call_pcap;
 		$callbacks{call_close} = \&call_pcap_close;
-		$callbacks{packet} = \&call_packet,
+		$callbacks{packet} = \&call_packet;
 	}
 }
 sub cb {