diff --git a/rsudo.c b/rsudo.c index 074f570..33e39e2 100644 --- a/rsudo.c +++ b/rsudo.c @@ -91,7 +91,7 @@ int main(int argc, char **argv) } - if(strlen(buffer) - 1 != header.len) + if(strlen(buffer) != header.len || strlen(buffer) - 1 != header.len) { printf("%u %d\n", strlen(buffer), header.len); LOG_ERROR("main", "hello length != header length");