Add a very subtle bug in nfs_set_error()
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 21 Jun 2011 08:33:50 +0000 (18:33 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 21 Jun 2011 08:33:50 +0000 (18:33 +1000)
when nfs_set_error is called with error_string being the result of a lower layer
problem so it is passed as "rpc_get_error()"

This meant that since free that nfs->rpc->error_string before we reference it a few lines further down in the vasprintf(..., error_string,
adn memory corruption triggers.

Valgrind found this, Valgrind rules!


No differences found