* vms.c (vms_close_and_cleanup): Check for the presence of a
vms_private_data_struct before examining any of its fields.
+2008-01-07 Nick Clifton <nickc@redhat.com>
+
+ PR binutils/5535
+ * vms.c (vms_close_and_cleanup): Check for the presence of a
+ vms_private_data_struct before examining any of its fields.
+
2008-01-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/5522
#if VMS_DEBUG
vms_debug (1, "vms_close_and_cleanup (%p)\n", abfd);
#endif
- if (abfd == NULL)
+ if (abfd == NULL
+ || abfd->tdata.any == NULL)
return TRUE;
if (PRIV (vms_buf) != NULL)