[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Only garbage was found in the patch input.



Salut
Quelqu'un sait pourquoi j'obtiens une erreur l'orque je lance mon patch
merci

patch -p0 < ssp.diff
patch: **** Only garbage was found in the patch input.


Voici le patch

--- decode.c 2003-04-09 21:18:23.000000000 +0200
+++ /root/snort-patch/snort-2.0.0/src/decode.c 2003-05-16 09:13:30.000000000 +0200 -42,7 +42,6 HttpUri UriBufs[URI_COUNT];
u_int8_t DecodeBuffer[DECODE_BLEN];

-
/*
* Function: DecodeEthPkt(Packet *, char *, struct pcap_pkthdr*, u_int8_t*)
 *
-2326,8 +2325,8 if(pv.checksums_mode & DO_UDP_CHECKSUMS)
    {
/* look at the UDP checksum to make sure we've got a good packet */
- ph.sip = (u_int32_t)(p->iph->ip_src.s_addr);
- ph.dip = (u_int32_t)(p->iph->ip_dst.s_addr);
+ memcpy (&ph.sip, &p->iph->ip_src.s_addr, sizeof (u_int32_t));
+ memcpy (&ph.dip, &p->iph->ip_dst.s_addr, sizeof (u_int32_t));
        ph.zero = 0;
        ph.protocol = p->iph->ip_proto;
        /* ph.udplen is up there */






Reply to: