diff options
author | midipix <writeonce@midipix.org> | 2016-12-14 06:25:59 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-12-15 01:47:56 -0500 |
commit | db8062c0b1147f88362d8d84bcf9e7458d8d89de (patch) | |
tree | ae5be6f2bd02f33ac5b0adf6299689219aeddc74 /src/pty | |
parent | 5489c6fe80117f0fa7e247adc6e886a458840bbb (diff) | |
download | ntapi-db8062c0b1147f88362d8d84bcf9e7458d8d89de.tar.bz2 ntapi-db8062c0b1147f88362d8d84bcf9e7458d8d89de.tar.xz |
__ntapi_pty_query(): properly validate pty_info_class.
Diffstat (limited to 'src/pty')
-rw-r--r-- | src/pty/ntapi_pty_query.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pty/ntapi_pty_query.c b/src/pty/ntapi_pty_query.c index 6754c77..7550ad3 100644 --- a/src/pty/ntapi_pty_query.c +++ b/src/pty/ntapi_pty_query.c @@ -63,6 +63,8 @@ int32_t __stdcall __ntapi_pty_query( msg.data.ctlinfo.ctxarg[3] = inherit->any[3]; hport = pty ? pty : __ntapi_internals()->hport_tty_session; + } else { + return NT_STATUS_INVALID_INFO_CLASS; } if ((status = __ntapi->zw_request_wait_reply_port(hport,&msg,&msg))) |