[bind10-dev] trivial bug in src/lib/util/io/fd.cc

Francis Dupont fdupont at isc.org
Sun Oct 16 16:40:15 UTC 2011


In:

    size_t rest(length);
    // Just keep writing until all is written                                   
    while (rest) {
        ssize_t written(write(fd, buffer, rest));
        if (rest == -1) {
            ^^^^ should be written

BTW the same bug is in the read, rest in == -1 must be replaced
by amount

Regards

Francis Dupont <fdupont at isc.org>



More information about the bind10-dev mailing list