sahlberg / libsmb2

SMB2/3 userspace client
Other
310 stars 126 forks source link

Initialize p_syntax_id_t #310

Closed nopnop2002 closed 6 months ago

nopnop2002 commented 6 months ago

The following structures are defined.

typedef struct p_syntax_id {
        dcerpc_uuid_t uuid;
        uint16_t vers;
        uint16_t vers_minor;
} p_syntax_id_t;

p_syntax_id_t has three member variables.

The structure is initialized below, but one member variable is missing.

p_syntax_id_t ndr32_syntax = {
        {NDR32_UUID}, 2
};

p_syntax_id_t ndr64_syntax = {
        {NDR64_UUID}, 1
};

Such a change is required.

p_syntax_id_t ndr32_syntax = {
        {NDR32_UUID}, 2, 0
};

p_syntax_id_t ndr64_syntax = {
        {NDR64_UUID}, 1, 0
};

https://github.com/sahlberg/libsmb2/pull/313