mirror of
https://codeberg.org/scip/udpxd.git
synced 2025-12-16 11:30:57 +01:00
Merge pull request #2 from ValdikSS/master
Check for dstip before using it. Fixes #1.
This commit is contained in:
2
udpxd.c
2
udpxd.c
@@ -211,7 +211,7 @@ int main ( int argc, char* argv[] ) {
|
|||||||
err = 1;
|
err = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(srcip != NULL) {
|
if(srcip != NULL && dstip != NULL) {
|
||||||
if(is_v6(srcip) != is_v6(dstip)) {
|
if(is_v6(srcip) != is_v6(dstip)) {
|
||||||
fprintf(stderr, "Bind ip and destination ip must be both v4 or v6 and can't be mixed!\n");
|
fprintf(stderr, "Bind ip and destination ip must be both v4 or v6 and can't be mixed!\n");
|
||||||
err = 1;
|
err = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user