Index: server/common/oursrc/execsys/gitproxy.pl
===================================================================
--- server/common/oursrc/execsys/gitproxy.pl	(revision 850)
+++ server/common/oursrc/execsys/gitproxy.pl	(revision 851)
@@ -34,5 +34,5 @@
     $msg .= $buf;
     my $len;
-    if (($len) = $msg =~ m/^([[:xdigit:]]{4})/ and length($') >= hex($len)) {
+    if (($len) = $msg =~ m/^([[:xdigit:]]{4})/ and length($msg) >= hex($len)) {
 	foreach (split("\0", $')) {
 	    last if ($host) = m/^host=(.*)$/;
