Changeset 549

Show
Ignore:
Timestamp:
08/04/08 15:51:31 (8 months ago)
Author:
smoku
Message:

Fix for authreg_pipe. Fixes #204

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/storage/authreg_pipe.c

    r545 r549  
    126126    } 
    127127 
    128     if(ap_base64decode_len(&buf[3], -1) >= 256) { 
     128    if(ap_base64decode_len(&buf[3], strlen(&buf[3])) >= 256) { 
    129129        log_debug(ZONE, "decoded password longer than buffer"); 
    130130        return 1; 
    131131    } 
    132132 
    133     ap_base64decode(password, &buf[3], -1); 
     133    ap_base64decode(password, &buf[3], strlen(&buf[3])); 
    134134 
    135135    log_debug(ZONE, "got password: %s", password);