-Mon May 28 21:21:39 EEST 2007 Pekka Riikonen <priikone@silcnet.org>
+Mon May 28 23:21:39 EEST 2007 Pekka Riikonen <priikone@silcnet.org>
+
+ * Fixed nickname formatting crash when updating existing
+ client entry. Affected file is lib/silcclient/client_entry.c.
* Fixed MIME object encoding in attribute payload encoding.
Affected file is lib/silccore/silcattrs.c.
}
/* Is the requested client formatted already */
- if (!silc_utf8_strcasecmp(client_entry->nickname,
+ if (client_entry->nickname_normalized &&
+ !silc_utf8_strcasecmp(client_entry->nickname,
client_entry->nickname_normalized))
formatted = TRUE;
unformatted = entry;
break;
}
- }
+ }
/* If there are no other unformatted clients and the requested client is
unformatted, just return it. */
return client_entry;
}
- /* If priority formatting then the requested client will get the
+ /* If priority formatting then the requested client will get the
unformatted nickname, and the unformatted client will get a new
formatted nickname. */
if (priority) {
&cp))
return NULL;
- silc_snprintf(client_entry->nickname, sizeof(client_entry->nickname),
+ silc_snprintf(client_entry->nickname, sizeof(client_entry->nickname),
cp);
silc_free(cp);
}