gss: Fix sign extension bug (from be708ca3cf)

When unsigned char values are shifted, they are promoted to int (unless
sizeof(int) == sizeof(char)).  This means that the change in be708ca3cf
ultimately leads to a sign extension bug.
This commit is contained in:
Nicolas Williams
2022-01-06 15:25:38 -06:00
parent e06eeb5256
commit 3af6926c7d

View File

@@ -171,7 +171,8 @@ import_export_name (OM_uint32 *minor_status,
{
CompositePrincipal *composite;
unsigned char *p;
size_t length, sz;
uint32_t length;
size_t sz;
OM_uint32 ret;
int is_composite;
char *name;