r22018: fix compile error
authorHerb Lewis <herb@samba.org>
Sat, 31 Mar 2007 03:11:02 +0000 (03:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:19:02 +0000 (12:19 -0500)
(This used to be commit a4c1c770a227390f745c9db07efe468bdcd31339)

source3/nmbd/nmbd_incomingdgrams.c

index 616b5df9dbe680d88288d4af31de64a9871d9b6b..ef23f3a20dbc25a78c006b42b2efe464a180c623 100644 (file)
@@ -431,13 +431,13 @@ void process_lm_host_announce(struct subnet_record *subrec, struct packet_struct
        fstring comment;
        char *s = get_safe_offset(buf,len,buf,9);
 
+       START_PROFILE(lm_host_announce);
        if (!s) {
-               return;
+               goto done;
        }
-       START_PROFILE(lm_host_announce);
        s = skip_string(buf,len,s,1);
        if (!s) {
-               return;
+               goto done;
        }
        pull_ascii(comment, s, sizeof(fstring), 43, STR_TERMINATE);