]> granicus.if.org Git - curl/commit
telnet.c: fix invalid use of custom read function if not being set
authorMarc Hoersken <info@marc-hoersken.de>
Tue, 24 Feb 2015 23:01:14 +0000 (00:01 +0100)
committerMarc Hoersken <info@marc-hoersken.de>
Tue, 24 Feb 2015 23:01:14 +0000 (00:01 +0100)
commitb3bcdaf01a1123bd1b7a8c32f4fc73d145c51d38
tree42f0ea5fdb9f788062daea4750004a734a9a405c
parent03fa576833643c67579ae216c4e7350fa9b5f2fe
telnet.c: fix invalid use of custom read function if not being set

obj_count can be 1 if the custom read function is set or the stdin
handle is a reference to a pipe. Since the pipe should be handled
using the PeekNamedPipe-check below, the custom read function should
only be used if it is actually enabled.
lib/telnet.c