ftp/netkit-ftp-0.17-C-Frame121.patch
Petr Šabata 1666a24e9c RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/ftp#b1415fc448cd0131b94f8c8bcaede3f1eb394460
2020-10-15 00:38:36 +02:00

26 lines
754 B
Diff

--- netkit-ftp-0.17/ftp/ftp.c.rasold 2005-10-26 16:56:09.000000000 +0200
+++ netkit-ftp-0.17/ftp/ftp.c 2005-10-26 16:56:46.000000000 +0200
@@ -1253,14 +1253,14 @@
switch (data_addr.su_family) {
case AF_INET:
#if 0
- if (try_epsv) {
- result = command(pasvcmd = "EPSV 1");
- if (code / 10 == 22 && code != 229) {
- fprintf(stderr,
- "wrong server: return code must be 229\n");
- result = COMPLETE + 1;
- }
- } else {
+/*@*/ if (try_epsv) {
+/*@*/ result = command(pasvcmd = "EPSV 1");
+/*@*/ if (code / 10 == 22 && code != 229) {
+/*@*/ fprintf(stderr,
+/*@*/ "wrong server: return code must be 229\n");
+/*@*/ result = COMPLETE + 1;
+/*@*/ }
+/*@*/ } else {
#endif
result = COMPLETE + 1;