2007-08-04 Srinivasa Ragavan <sragavan@novell.com>
+ ** Fix for bug #460999
+
+ * e-passwords.c: (ep_get_password_keyring): If the keying has null
+ data, consider that as invalid.
+
+2007-08-04 Srinivasa Ragavan <sragavan@novell.com>
+
** Fix for bug #458670
* e-name-selector-entry.c: (entry_activate): If there is no selectable
{
attr = &g_array_index (pattr, GnomeKeyringAttribute, i);
- if (!strcmp(attr->name, "user")) {
+ if (!strcmp(attr->name, "user") && attr->value.string) {
present++;
if (strcmp (attr->value.string, uri->user))
accept = FALSE;
- } else if (!strcmp(attr->name, "server")) {
+ } else if (!strcmp(attr->name, "server") && attr->value.string) {
present++;
if (strcmp (attr->value.string, uri->host))
accept = FALSE;
}
}
- if (present == 2 && accept)
+ if (present == 2 && accept) {
msg->password = g_strdup (((GnomeKeyringFound *) tmp->data)->secret);
+ break;
+ }
}
}
}