Fix bug: ptr to an ep str kept for use while capture file open.

svn path=/trunk/; revision=27905
This commit is contained in:
Bill Meier 2009-03-30 21:59:31 +00:00
parent 8b6ae788b2
commit 891aa5a6aa
1 changed files with 6 additions and 6 deletions

View File

@ -3854,12 +3854,12 @@ bootp_init_protocol(void)
{
/* do nothing */
}
if (ii < 3) continue; /* not enought values. Go again */
ii = atoi(optiondetail[0]); /* get the bootp option number */
if (ii==0 || ii>=BOOTP_OPT_NUM-1) continue; /* not a number or out of range. Go again */
if (bootp_opt[ii].ftype == special) continue; /* don't mess with specials. Go again */
bootp_opt[ii].text = optiondetail[1];
type = optiondetail[2]; /* A string to be converted to an ftype enum */
if (ii < 3) continue; /* not enough values. Go again */
ii = atoi(optiondetail[0]); /* get the bootp option number */
if (ii==0 || ii>=BOOTP_OPT_NUM-1) continue; /* not a number or out of range. Go again */
if (bootp_opt[ii].ftype == special) continue; /* don't mess with specials. Go again */
bootp_opt[ii].text = se_strdup(optiondetail[1]); /* store a permanent ("seasonal") copy */
type = optiondetail[2]; /* A string to be converted to an ftype enum */
/* XXX This if statement could be extended to allow for additinonal types */
if (g_ascii_strcasecmp(type,"string") == 0)
{