mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
CVE-2022-37966 s3:param: Fix old-style function definition
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 80dc3bc2b8
)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15237
Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
0fee9c469c
commit
130c4877b3
@ -2144,7 +2144,7 @@ struct loadparm_service *lp_servicebynum(int snum)
|
||||
return ServicePtrs[snum];
|
||||
}
|
||||
|
||||
struct loadparm_service *lp_default_loadparm_service()
|
||||
struct loadparm_service *lp_default_loadparm_service(void)
|
||||
{
|
||||
return &sDefault;
|
||||
}
|
||||
@ -4795,7 +4795,7 @@ unsigned int * get_flags(void)
|
||||
return flags_list;
|
||||
}
|
||||
|
||||
enum samba_weak_crypto lp_weak_crypto()
|
||||
enum samba_weak_crypto lp_weak_crypto(void)
|
||||
{
|
||||
if (Globals.weak_crypto == SAMBA_WEAK_CRYPTO_UNKNOWN) {
|
||||
Globals.weak_crypto = SAMBA_WEAK_CRYPTO_DISALLOWED;
|
||||
|
Loading…
Reference in New Issue
Block a user