IPAddress.m
changeset 60 dd637bdd214e
parent 59 46c7844cb592
     1.1 --- a/IPAddress.m	Mon Jul 20 13:26:29 2009 -0700
     1.2 +++ b/IPAddress.m	Mon Jul 20 14:50:49 2009 -0700
     1.3 @@ -99,6 +99,10 @@
     1.4  
     1.5  - (id) initWithData: (NSData*)data
     1.6  {
     1.7 +    if (!data) {
     1.8 +        [self release];
     1.9 +        return nil;
    1.10 +    }
    1.11      const struct sockaddr* addr = data.bytes;
    1.12      if (data.length < sizeof(struct sockaddr_in))
    1.13          addr = nil;