Ignore:
Timestamp:
08/27/08 16:37:38 (5 years ago)
Author:
BrainSlayer
Message:

another try to get around the crash problem (could be stack related)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/httpd.c

    r10225 r10226  
    10391039  char *peer = inet_ntoa (sa.sin_addr); 
    10401040  char *client = malloc(strlen(peer)+1); 
    1041    
     1041  strcpy(client,peer); 
    10421042  nvram_set ("http_client_ip", client); 
     1043  m = get_mac_from_ip (client); 
     1044  nvram_set ("http_client_mac", m); 
    10431045  free(client); 
    1044   //if(strcmp(nvram_safe_get("http_client_ip"), inet_ntoa(sa.sin_addr))) 
    1045   //      nvram_set("http_client_ip", inet_ntoa(sa.sin_addr)); 
    1046   m = get_mac_from_ip (inet_ntoa (sa.sin_addr)); 
    1047   nvram_set ("http_client_mac", m); 
    1048   //if(m){ 
    1049   //      if(strcmp(nvram_safe_get("http_client_mac"), m)) 
    1050   //              nvram_set("http_client_mac", m); 
    1051   //} 
    10521046} 
    10531047 
Note: See TracChangeset for help on using the changeset viewer.