mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
r22018: fix compile error
(This used to be commit a4c1c770a227390f745c9db07efe468bdcd31339)
This commit is contained in:
parent
730bfd9ced
commit
01efa3d403
@ -431,13 +431,13 @@ void process_lm_host_announce(struct subnet_record *subrec, struct packet_struct
|
|||||||
fstring comment;
|
fstring comment;
|
||||||
char *s = get_safe_offset(buf,len,buf,9);
|
char *s = get_safe_offset(buf,len,buf,9);
|
||||||
|
|
||||||
if (!s) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
START_PROFILE(lm_host_announce);
|
START_PROFILE(lm_host_announce);
|
||||||
|
if (!s) {
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
s = skip_string(buf,len,s,1);
|
s = skip_string(buf,len,s,1);
|
||||||
if (!s) {
|
if (!s) {
|
||||||
return;
|
goto done;
|
||||||
}
|
}
|
||||||
pull_ascii(comment, s, sizeof(fstring), 43, STR_TERMINATE);
|
pull_ascii(comment, s, sizeof(fstring), 43, STR_TERMINATE);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user