]> The Tcpdump Group git mirrors - libpcap/commitdiff
SITA: Fix a typo in a variable name
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 2 Mar 2022 12:27:40 +0000 (13:27 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 2 Mar 2022 12:31:22 +0000 (13:31 +0100)
(cherry picked from commit 911be2396dd5ee5849306c6c9ac09dd182f9394e)

pcap-sita.c

index c53f32358b523ad8e58e1926e5b79da67fa8ff5f..16475729ba2690a9373b0d31d21d47a20bc33f80 100644 (file)
@@ -441,7 +441,7 @@ static char *translate_IOP_to_pcap_name(unit_t *u, char *IOPname, bpf_u_int32 if
 
        iface->iftype = iftype;                                 /* remember the interface type of this interface */
 
-       iface->IOPname = strdup(IOPnam);                        /* copy it and stick it into the structure */
+       iface->IOPname = strdup(IOPname);                       /* copy it and stick it into the structure */
         if (iface->IOPname == NULL) {    /* oops, we didn't get the memory requested     */
                 fprintf(stderr, "Error...couldn't allocate memory for IOPname...value of errno is: %d\n", errno);
                 return NULL;