Ignore:
Timestamp:
Nov 26, 2007, 9:24:27 AM (18 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.27a

Location:
branches/samba-3.0/source/nmbd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/nmbd/nmbd_namelistdb.c

    r1 r105  
    506506                }
    507507
    508                 for( bcast_subrecs = FIRST_SUBNET, i = 0; bcast_subrecs; bcast_subrecs = NEXT_SUBNET_EXCLUDING_UNICAST(bcast_subrecs), i++ )
     508                for( bcast_subrecs = FIRST_SUBNET, i = 0; bcast_subrecs &&
     509                                i < num_ips;
     510                                bcast_subrecs = NEXT_SUBNET_EXCLUDING_UNICAST(bcast_subrecs), i++ ) {
    509511                        iplist[i] = bcast_subrecs->myip;
     512                }
     513                num_ips = i;
    510514        }
    511515
  • branches/samba-3.0/source/nmbd/nmbd_processlogon.c

    r102 r105  
    451451                                                        sizeof(outbuf) - PTR_DIFF(q+1, outbuf),
    452452                                                        0);
     453                                                if (size == (uint8)-1) {
     454                                                        return;
     455                                                }
    453456                                                SCVAL(q, 0, size);
    454457                                                q += (size + 1);
     
    471474                                                        sizeof(outbuf) - PTR_DIFF(q+1, outbuf),
    472475                                                        0);
     476                                        if (size == (uint8)-1) {
     477                                                return;
     478                                        }
    473479                                        SCVAL(q, 0, size);
    474480                                        q += (size + 1);
     
    486492                                                        sizeof(outbuf) - PTR_DIFF(q+1, outbuf),
    487493                                                        STR_UPPER);
     494                                        if (size == (uint8)-1) {
     495                                                return;
     496                                        }
    488497                                        SCVAL(q, 0, size);
    489498                                        q += (size + 1);
     
    500509                                                        sizeof(outbuf) - PTR_DIFF(q+1, outbuf),
    501510                                                        0);
     511                                        if (size == (uint8)-1) {
     512                                                return;
     513                                        }
    502514                                        SCVAL(q, 0, size);
    503515                                        q += (size + 1);
     
    515527                                                        sizeof(outbuf) - PTR_DIFF(q+1, outbuf),
    516528                                                        0);
     529                                                if (size == (uint8)-1) {
     530                                                        return;
     531                                                }
    517532                                                SCVAL(q, 0, size);
    518533                                                q += (size + 1);
     
    527542                                                        sizeof(outbuf) - PTR_DIFF(q+1, outbuf),
    528543                                                        0);
     544                                        if (size == (uint8)-1) {
     545                                                return;
     546                                        }
    529547                                        SCVAL(q, 0, size);
    530548                                        q += (size + 1);
Note: See TracChangeset for help on using the changeset viewer.