r22018: fix compile error
[samba.git] / 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);