}
char *msg;
- if ((msg = iniparser_getstrdup(obj->iniconfig, volume->v_configname, "login message", NULL)) != NULL) {
- if (obj->options.loginmesg)
- free(obj->options.loginmesg);
- obj->options.loginmesg = msg;
- }
+ if ((msg = iniparser_getstring(obj->iniconfig, volume->v_configname, "login message", NULL)) != NULL)
+ setmessage(msg);
return( AFP_OK );
}