Telnetd: Missing argument in debug statement can cause crash in certain error conditions. From David Sidrane

This commit is contained in:
Gregory Nutt 2013-10-24 07:21:56 -06:00
parent 2d36a7d06b
commit b914af7836
3 changed files with 5 additions and 2 deletions

View File

@ -690,4 +690,7 @@
/dev/random (2013-10-20).
* apps/examples/cc3000: Extensions and enhancements from David
Sidrane (2013-10-23).
* apps/netutils/telnetd/telnetd_driver.c: Missing argument to
debug statement can cause crashes in certain error conditions.
From David Sidrane (2013-10-24).

View File

@ -504,7 +504,7 @@ static int telnetd_close(FAR struct file *filep)
ret = unregister_driver(devpath);
if (ret < 0)
{
nlldbg("Failed to unregister the driver %s: %d\n", ret);
nlldbg("Failed to unregister the driver %s: %d\n", devpath, ret);
}
free(devpath);

View File

@ -505,7 +505,7 @@ static int telnetd_close(FAR struct file *filep)
ret = unregister_driver(devpath);
if (ret < 0)
{
nlldbg("Failed to unregister the driver %s: %d\n", ret);
nlldbg("Failed to unregister the driver %s: %d\n", devpath, ret);
}
free(devpath);