mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 19:51:27 +00:00
Fixes 2 iSNS server initialization problems noticed by Tan Eric <Eric.Tan@bdt-cn.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2373 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1126,8 +1126,6 @@ int config_load(const char *config_name)
|
||||
size = i;
|
||||
buf[size] = '\0';
|
||||
|
||||
config_parse_main(buf, 0);
|
||||
|
||||
err = config_isns_load(buf);
|
||||
if ((err == 0) && (isns_server != NULL)) {
|
||||
int rc = isns_init();
|
||||
@@ -1137,6 +1135,8 @@ int config_load(const char *config_name)
|
||||
}
|
||||
}
|
||||
|
||||
config_parse_main(buf, 0);
|
||||
|
||||
out_free:
|
||||
free(buf);
|
||||
|
||||
|
||||
@@ -1149,6 +1149,8 @@ int isns_init(void)
|
||||
isns_timeout = current_timeout * 1000;
|
||||
|
||||
err = isns_connect();
|
||||
if (err > 0)
|
||||
err = 0;
|
||||
|
||||
out:
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user