Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reject a daemon-excluded destination.
[rsync/rsync.git]
/
clientserver.c
diff --git
a/clientserver.c
b/clientserver.c
index
a9a1af5
..
47b2980
100644
(file)
--- a/
clientserver.c
+++ b/
clientserver.c
@@
-214,7
+214,7
@@
int start_inband_exchange(int f_in, int f_out, const char *user, int argc, char
int sargc = 0;
char *p, *modname;
int sargc = 0;
char *p, *modname;
- assert(argc > 0);
+ assert(argc > 0
&& *argv != NULL
);
if (**argv == '/') {
rprintf(FERROR,
if (**argv == '/') {
rprintf(FERROR,
@@
-505,7
+505,7
@@
static int rsync_module(int f_in, int f_out, int i, char *addr, char *host)
if ((p = strstr(module_dir, "/./")) != NULL) {
*p = '\0';
p += 2;
if ((p = strstr(module_dir, "/./")) != NULL) {
*p = '\0';
p += 2;
- } else if ((p = strdup("/")) == NULL)
+ } else if ((p = strdup("/")) == NULL)
/* MEMORY LEAK */
out_of_memory("rsync_module");
}
out_of_memory("rsync_module");
}