Fail on empty token
authorSam Hartman <hartmans@debian.org>
Mon, 24 Nov 2014 21:26:30 +0000 (16:26 -0500)
committerSam Hartman <hartmans@debian.org>
Mon, 24 Nov 2014 21:26:30 +0000 (16:26 -0500)
test/gssweb_client.pl

index a3f7157..1550fd5 100755 (executable)
@@ -66,6 +66,7 @@ my $response_token = undef;
     } elsif ($status == 401) {
        print "Continuing\n";
        $response_token = parse_token($www->content());
+       die "Empty token supplied\n" if $response_token eq "";
     } else {
        print "Unexpected response status: $status\n";
        print $www->content();