[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Security Question



On Fri, Jan 03, 2003 at 11:03:36AM -0800, John Gedeon wrote:

> >> > I get the following compile time errors: linuxcniapi.c: In
> >> > function `CNI_LINUXGetMacAddress': linuxcniapi.c:1118:
> >> > dereferencing pointer to incomplete type linuxcniapi.c:1120:
> >
> >Can we see a few lines of code around those locations in that file?
> 
> lines 1107 - 1128
> 
>     PBINDING pBinding;
> 
>     if (!Binding)
>         return CNI_E_BAD_BINDING;
> 
>     pBinding = (PBINDING) Binding;
> 
>     if (!ppMacAddress || !pulMacAddressSize)
>         return CNI_E_BAD_PARAMETER;
> 
> 
>     *ppMacAddress = pBinding->pDevice->dev_addr;   // 1118

That suggests to me that some header file is not being properly included
at the top of linuxcniapi.c. I don't know which without knowing what
PBINDING expands to, though (it'll be a #define or a typedef for some
other type).

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: