@@ -1005,7 +1005,7 @@ static ec_error_t zs_openab_oop(USER_INFO_REF &&info, BINARY bin,
10051005 ep.init (bin.pv , bin.cb , common_util_alloc, EXT_FLAG_WCOUNT | EXT_FLAG_UTF16);
10061006 if (ep.g_oneoff_eid (&eid) != pack_result::ok)
10071007 return ecInvalidParam;
1008- auto u = oneoff_object::create (eid);
1008+ auto u = oneoff_object::create (std::move ( eid) );
10091009 if (u == nullptr )
10101010 return ecServerOOM;
10111011 *zmg_type = zs_objtype::oneoff;
@@ -3006,7 +3006,6 @@ ec_error_t zs_modifyrecipients(GUID hsession,
30063006 TPROPVAL_ARRAY *prcpt;
30073007 FLATUID provider_uid;
30083008 TAGGED_PROPVAL *ppropval;
3009- ONEOFF_ENTRYID oneoff_entry;
30103009
30113010 if (prcpt_list->count >= 0x7fef || (flags != MODRECIP_ADD &&
30123011 flags != MODRECIP_MODIFY && flags != MODRECIP_REMOVE))
@@ -3080,6 +3079,8 @@ ec_error_t zs_modifyrecipients(GUID hsession,
30803079 continue ;
30813080 if (provider_uid == muidEMSAB) {
30823081 EMSAB_ENTRYID ab_entryid;
3082+ EXT_PULL ext_pull;
3083+
30833084 ext_pull.init (pbin->pb , pbin->cb , common_util_alloc, EXT_FLAG_UTF16);
30843085 if (ext_pull.g_abk_eid (&ab_entryid) != pack_result::ok ||
30853086 ab_entryid.type != DT_MAILUSER)
@@ -3114,9 +3115,12 @@ ec_error_t zs_modifyrecipients(GUID hsession,
31143115 return ecServerOOM;
31153116 cu_set_propval (prcpt, PR_DISPLAY_NAME, dupval);
31163117 } else if (provider_uid == muidOOP) {
3118+ ONEOFF_ENTRYID oneoff_entry;
3119+ EXT_PULL ext_pull;
3120+
31173121 ext_pull.init (pbin->pb , pbin->cb , common_util_alloc, EXT_FLAG_UTF16);
31183122 if (ext_pull.g_oneoff_eid (&oneoff_entry) != pack_result::ok ||
3119- strcasecmp (oneoff_entry.paddress_type , " SMTP" ) != 0 )
3123+ strcasecmp (oneoff_entry.paddress_type . c_str () , " SMTP" ) != 0 )
31203124 continue ;
31213125 ppropval = cu_alloc<TAGGED_PROPVAL>(prcpt->count + 5 );
31223126 if (ppropval == nullptr )
0 commit comments