summaryrefslogtreecommitdiff
path: root/rpmio/rpmrpc.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-09-15 13:49:11 +0000
committerjbj <devnull@localhost>2001-09-15 13:49:11 +0000
commitda9b21485cd9400883de08b2754bd103f25144da (patch)
tree0b547ef38f19e147958a6fc4a9fc283727b81d97 /rpmio/rpmrpc.c
parent2b23209fceb4377bd4c4b5230c580122ffa81b41 (diff)
downloadlibrpm-tizen-da9b21485cd9400883de08b2754bd103f25144da.tar.gz
librpm-tizen-da9b21485cd9400883de08b2754bd103f25144da.tar.bz2
librpm-tizen-da9b21485cd9400883de08b2754bd103f25144da.zip
Sync with rpm-4_0 branch.
CVS patchset: 5048 CVS date: 2001/09/15 13:49:11
Diffstat (limited to 'rpmio/rpmrpc.c')
-rw-r--r--rpmio/rpmrpc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/rpmio/rpmrpc.c b/rpmio/rpmrpc.c
index f3d67a769..a9a53d74a 100644
--- a/rpmio/rpmrpc.c
+++ b/rpmio/rpmrpc.c
@@ -837,6 +837,11 @@ static int ftpNLST(const char * url, ftpSysCall_t ftpSysCall,
/* XXX possibly should do "NLST -lais" to get st_ino/st_blocks also */
u->openError = ftpReq(fd, "NLST", "-la");
+
+ if (bn == NULL || nbn <= 0) {
+ rc = -2;
+ goto exit;
+ }
break;
}
@@ -846,11 +851,6 @@ static int ftpNLST(const char * url, ftpSysCall_t ftpSysCall,
goto exit;
}
- if (bn == NULL || nbn <= 0) {
- rc = -2;
- goto exit;
- }
-
if (ftpBufAlloced == 0 || ftpBuf == NULL) {
ftpBufAlloced = url_iobuf_size;
ftpBuf = xcalloc(ftpBufAlloced, sizeof(ftpBuf[0]));