Re: why store the search type in the ieee name field?

Patrick Mansfield
2003-02-11T16:46:56Z

On Tue, Feb 11, 2003 at 10:43:57AM -0600, James Bottomley wrote:

> No, look at the code. After doing name[0] = hex_str[...
> it then does a strcat. If name is full of junk, strcat will append
> after the first \0 it finds (which may be off the end of the name
> field). It only works because name[1] is zero but nothing seems to
> clear it. I'm hoping it's being cleared in a piece of code I haven't
> found yet...
>
> James

Yes - there's a memset() in scsi_load_identifier, plus on error some of
the fields are re-zeroed (a bit ugly).

-- Patrick Mansfield