Deleted Added
full compact
smbutil.c (313537) smbutil.c (327234)
1/*
2 * Copyright (C) Andrew Tridgell 1995-1999
3 *
4 * This software may be distributed either under the terms of the
5 * BSD-style license that accompanies tcpdump or the GNU GPL version 2
6 * or later
7 */
8

--- 223 unchanged lines hidden (view full) ---

232 c = *s;
233 if ((c & 0xC0) == 0xC0)
234 return(2);
235 while (*s) {
236 if (s >= maxbuf)
237 return(-1); /* name goes past the end of the buffer */
238 ND_TCHECK2(*s, 1);
239 s += (*s) + 1;
1/*
2 * Copyright (C) Andrew Tridgell 1995-1999
3 *
4 * This software may be distributed either under the terms of the
5 * BSD-style license that accompanies tcpdump or the GNU GPL version 2
6 * or later
7 */
8

--- 223 unchanged lines hidden (view full) ---

232 c = *s;
233 if ((c & 0xC0) == 0xC0)
234 return(2);
235 while (*s) {
236 if (s >= maxbuf)
237 return(-1); /* name goes past the end of the buffer */
238 ND_TCHECK2(*s, 1);
239 s += (*s) + 1;
240 ND_TCHECK2(*s, 1);
240 }
241 return(PTR_DIFF(s, s0) + 1);
242
243trunc:
244 return(-1); /* name goes past the end of the buffer */
245}
246
247static void

--- 1645 unchanged lines hidden ---
241 }
242 return(PTR_DIFF(s, s0) + 1);
243
244trunc:
245 return(-1); /* name goes past the end of the buffer */
246}
247
248static void

--- 1645 unchanged lines hidden ---