Deleted Added
sdiff udiff text old ( 279002 ) new ( 279006 )
full compact
1%{
2/*-
3 * Copyright (c) 2012 The FreeBSD Foundation
4 * All rights reserved.
5 *
6 * This software was developed by Edward Tomasz Napierala under sponsorship
7 * from the FreeBSD Foundation.
8 *

--- 13 unchanged lines hidden (view full) ---

22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
30 * $FreeBSD: stable/10/usr.sbin/ctld/parse.y 279002 2015-02-19 14:31:16Z mav $
31 */
32
33#include <sys/queue.h>
34#include <sys/types.h>
35#include <sys/stat.h>
36#include <assert.h>
37#include <stdio.h>
38#include <stdint.h>

--- 608 unchanged lines hidden (view full) ---

647 }
648 ap = auth_portal_new(target->t_auth_group, $2);
649 free($2);
650 if (ap == NULL)
651 return (1);
652 }
653 ;
654
655target_portal_group: PORTAL_GROUP STR
656 {
657 if (target->t_portal_group != NULL) {
658 log_warnx("portal-group for target \"%s\" "
659 "specified more than once", target->t_name);
660 free($2);
661 return (1);
662 }
663 target->t_portal_group = portal_group_find(conf, $2);
664 if (target->t_portal_group == NULL) {
665 log_warnx("unknown portal-group \"%s\" for target "
666 "\"%s\"", $2, target->t_name);
667 free($2);
668 return (1);
669 }
670 free($2);
671 }
672 ;
673
674target_redirect: REDIRECT STR
675 {
676 int error;
677

--- 296 unchanged lines hidden ---