Add error verification in netbuff operations.
This commit is contained in:
parent
d6d205568f
commit
d855fbcf37
7 changed files with 38 additions and 19 deletions
|
@ -95,12 +95,12 @@ grub_err_t
|
|||
grub_netbuff_free (struct grub_net_buff *nb)
|
||||
{
|
||||
grub_free (nb->head);
|
||||
return 0;
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
||||
grub_err_t
|
||||
grub_netbuff_clear (struct grub_net_buff *nb)
|
||||
{
|
||||
nb->data = nb->tail = nb->head;
|
||||
return 0;
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue