Prevent crash in /caps with malformed JID input #21
@@ -3418,7 +3418,7 @@ cmd_caps(ProfWin* window, const char* const command, gchar** args)
|
||||
if (args[0]) {
|
||||
auto_jid Jid* jid = jid_create(args[0]);
|
||||
|
||||
if (jid->fulljid == NULL) {
|
||||
if (jid == NULL || jid->fulljid == NULL) {
|
||||
cons_show("You must provide a full jid to the /caps command.");
|
||||
} else {
|
||||
PContact pcontact = roster_get_contact(jid->barejid);
|
||||
|
||||
Reference in New Issue
Block a user