]>
Commit | Line | Data |
---|---|---|
7a1df367 JB |
1 | CAN-2004-0989 fix: backport of nano* changes between 2.6.14 and 2.6.15 |
2 | --- libxml2-2.4.24/nanoftp.c.orig 2004-10-28 11:50:39.000000000 +0200 | |
3 | +++ libxml2-2.4.24/nanoftp.c 2004-10-28 12:15:49.000000000 +0200 | |
4 | @@ -877,6 +877,9 @@ | |
5 | if (hp == NULL) | |
6 | return(-1); | |
7 | ||
8 | + if ((unsigned int) hp->h_length > sizeof(ctxt->ftpAddr.sin_addr)) | |
9 | + return(-1); /* gethostbyname address mismatch */ | |
10 | + | |
11 | /* | |
12 | * Prepare the socket | |
13 | */ |