Fix for older Windows (7 and below) / VC

This commit is contained in:
Vladimir Dubrovin committed 2026-04-24 17:04:03 +03:00
1 parent e6c3427cab
commit 6b61cfde4c
4 files changed
+8 -7

No files matched your search

+1 -1
View File
@@ -823,7 +823,7 @@ int doauth(struct clientparam * param){
(res = (*authfuncs->authorize)(param)))
return res;
if(conf.authcachetype && authfuncs->authenticate && authfuncs->authenticate != cacheauth && param->username && (!(conf.authcachetype&4) || (!param->pwtype && param->password))){
struct authcache ac={};
struct authcache ac={.username=""};
if(param->username) strncpy((char *)ac.username, (char *)param->username, 64);
if(*SAFAMILY(&param->sincr) == AF_INET