Variable aconf was used before its initialization - fixed
This commit is contained in:
parent
f2eac47666
commit
08e8aa7acc
1 changed files with 10 additions and 10 deletions
|
@ -263,16 +263,6 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char *
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Look for an oper reason */
|
|
||||||
if((oper_reason = strchr(reason, '|')) != NULL)
|
|
||||||
{
|
|
||||||
*oper_reason = '\0';
|
|
||||||
oper_reason++;
|
|
||||||
|
|
||||||
if(!EmptyString(oper_reason))
|
|
||||||
aconf->spasswd = rb_strdup(oper_reason);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(ConfigFileEntry.non_redundant_klines)
|
if(ConfigFileEntry.non_redundant_klines)
|
||||||
{
|
{
|
||||||
if((aconf = find_dline((struct sockaddr *)&daddr, t)) != NULL)
|
if((aconf = find_dline((struct sockaddr *)&daddr, t)) != NULL)
|
||||||
|
@ -302,6 +292,16 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char *
|
||||||
aconf->status = CONF_DLINE;
|
aconf->status = CONF_DLINE;
|
||||||
aconf->host = rb_strdup(dlhost);
|
aconf->host = rb_strdup(dlhost);
|
||||||
|
|
||||||
|
/* Look for an oper reason */
|
||||||
|
if((oper_reason = strchr(reason, '|')) != NULL)
|
||||||
|
{
|
||||||
|
*oper_reason = '\0';
|
||||||
|
oper_reason++;
|
||||||
|
|
||||||
|
if(!EmptyString(oper_reason))
|
||||||
|
aconf->spasswd = rb_strdup(oper_reason);
|
||||||
|
}
|
||||||
|
|
||||||
if(tdline_time > 0)
|
if(tdline_time > 0)
|
||||||
{
|
{
|
||||||
rb_snprintf(dlbuffer, sizeof(dlbuffer),
|
rb_snprintf(dlbuffer, sizeof(dlbuffer),
|
||||||
|
|
Loading…
Reference in a new issue