X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Futils.c;fp=daemon%2Futils.c;h=8e38459e004f9166aa5033297963e61852828bd1;hb=65399bc233d5f8910bf589d08b43b933975b462a;hp=c006b4f872afd3b2c3cb47dfc437e6cf5f09d13b;hpb=12fcb68f33f111924fa63c2ffd4b4d2dfb97e7a0;p=doldaconnect.git diff --git a/daemon/utils.c b/daemon/utils.c index c006b4f..8e38459 100644 --- a/daemon/utils.c +++ b/daemon/utils.c @@ -533,6 +533,8 @@ char *base64decode(char *data, size_t *datalen) c = (int)(unsigned char)*data; if(c == '=') break; + if(c == '\n') + continue; if(base64rev[c] == -1) { if(buf != NULL) @@ -630,6 +632,8 @@ char *base32decode(char *data, size_t *datalen) c = (int)(unsigned char)*data; if(c == '=') break; + if(c == '\n') + continue; if(base32rev[c] == -1) { if(buf != NULL)