mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 10:00:38 +01:00
Fixed CORE-1679: Gagbage bytes in isc_service_query() output
This commit is contained in:
parent
76450be56e
commit
69030e446e
@ -1281,6 +1281,7 @@ ISC_STATUS SVC_query2(Service* service,
|
||||
case isc_info_svc_to_eof:
|
||||
case isc_info_svc_limbo_trans:
|
||||
case isc_info_svc_get_users:
|
||||
{
|
||||
if (info + 4 >= end) {
|
||||
*info++ = isc_info_truncated;
|
||||
break;
|
||||
@ -1326,6 +1327,7 @@ ISC_STATUS SVC_query2(Service* service,
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
*status++ = isc_wish_list;
|
||||
@ -2252,8 +2254,8 @@ static void service_enqueue_byte(UCHAR ch, Service* service)
|
||||
|
||||
/* Ensure that service is not detached. */
|
||||
if (!(service->svc_flags & SVC_detached)) {
|
||||
service->svc_stdout[service_add_one(service->svc_stdout_tail)] = ch;
|
||||
service->svc_stdout_tail = service_add_one(service->svc_stdout_tail);
|
||||
service->svc_stdout[service->svc_stdout_tail] = ch;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user