Telnetd: Missing argument in debug statement can cause crash in certain error conditions. From David Sidrane
This commit is contained in:
parent
2d36a7d06b
commit
b914af7836
@ -690,4 +690,7 @@
|
|||||||
/dev/random (2013-10-20).
|
/dev/random (2013-10-20).
|
||||||
* apps/examples/cc3000: Extensions and enhancements from David
|
* apps/examples/cc3000: Extensions and enhancements from David
|
||||||
Sidrane (2013-10-23).
|
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).
|
||||||
|
|
||||||
|
@ -504,7 +504,7 @@ static int telnetd_close(FAR struct file *filep)
|
|||||||
ret = unregister_driver(devpath);
|
ret = unregister_driver(devpath);
|
||||||
if (ret < 0)
|
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);
|
free(devpath);
|
||||||
|
@ -505,7 +505,7 @@ static int telnetd_close(FAR struct file *filep)
|
|||||||
ret = unregister_driver(devpath);
|
ret = unregister_driver(devpath);
|
||||||
if (ret < 0)
|
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);
|
free(devpath);
|
||||||
|
Loading…
Reference in New Issue
Block a user