Avoid static analyzer warning about integer wraparound

This commit is contained in:
practicalswift 2018-05-11 10:13:15 +02:00 committed by Rusty Russell
parent 1125682ceb
commit fab3b214b4

View File

@ -161,6 +161,7 @@ static void negotiate_auth(struct rbuf *rbuf, const char *tor_password)
cookiefileerrno = errno;
continue;
}
assert(tal_len(contents) != 0);
discard_remaining_response(rbuf);
tor_send_cmd(rbuf,
tal_fmt(tmpctx, "AUTHENTICATE %s",