dcerpc: just use structure assignment rather than memcpy.

This commit is contained in:
Guy Harris 2023-08-24 16:08:32 -07:00
parent a3194d61f8
commit 45fc52bad9
1 changed files with 1 additions and 1 deletions

View File

@ -1201,7 +1201,7 @@ void register_dcerpc_auth_subdissector(guint8 auth_level, guint8 auth_type,
d->auth_level = auth_level;
d->auth_type = auth_type;
memcpy(&d->auth_fns, fns, sizeof(dcerpc_auth_subdissector_fns));
d->auth_fns = *fns;
dcerpc_auth_subdissector_list = g_slist_append(dcerpc_auth_subdissector_list, d);
}