|
|
@@ -3940,7 +3940,9 @@ static void serviceManagement(void *conn)
|
|
|
|
|
|
if(info->mode) {
|
|
|
int save_flag=0;
|
|
|
- send->mode = atoi(info->mode);
|
|
|
+ int mode=atoi(info->mode);
|
|
|
+
|
|
|
+ send->mode = mode;
|
|
|
if(send->mode) {
|
|
|
if(info->account && info->password && info->server && info->port && info->auth) {
|
|
|
if(strcmp(send->account, info->account)) {
|
|
|
@@ -3952,7 +3954,7 @@ static void serviceManagement(void *conn)
|
|
|
}
|
|
|
|
|
|
if(strcmp(send->server, info->server)) {
|
|
|
- strcpy(send->server, info->server);;
|
|
|
+ strcpy(send->server, info->server);
|
|
|
}
|
|
|
|
|
|
if(strcmp(send->port, info->port)) {
|
|
|
@@ -3965,8 +3967,7 @@ static void serviceManagement(void *conn)
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
- //memset(send, 0, sizeof(mail_send_t));;
|
|
|
- send->mode = atoi(info->mode);
|
|
|
+ //memset(send, 0, sizeof(mail_send_t));
|
|
|
}
|
|
|
|
|
|
if(memcmp(&mailInfo.send, &gdm->mailInfo.send, sizeof(mail_send_t))) {
|
|
|
@@ -3982,7 +3983,9 @@ static void serviceManagement(void *conn)
|
|
|
}
|
|
|
else{
|
|
|
recv[i].use = 0;
|
|
|
- strcpy(recv[i].account,"");
|
|
|
+ if(mode) {
|
|
|
+ strcpy(recv[i].account,"");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -4053,7 +4056,7 @@ static void serviceManagement(void *conn)
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- _globalSNMPManager.version=-1;
|
|
|
+ //_globalSNMPManager.version=1;
|
|
|
}
|
|
|
|
|
|
strcpy(_globalSNMPManager.public, _serviceManageRequestInfo._snmp_info.public);
|