X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=xinetd%2Fservice.c;h=0132d6ca5350418d1912807deea600fd9793bc82;hb=d588b6530e1382a624898b3f4307f636c72c80a9;hp=3d68d78d39c003464c3dbf0cd4fa70fb8fcd3b26;hpb=7d80dea6e340c708819fa904651114351bdd8318;p=packages%2Fxinetd.git diff --git a/xinetd/service.c b/xinetd/service.c index 3d68d78..0132d6c 100644 --- a/xinetd/service.c +++ b/xinetd/service.c @@ -745,8 +745,8 @@ static status_e failed_service(struct service *sp, return FAILED; if ( last == NULL ) { - last = SAIN( calloc( 1, sizeof(union xsockaddr) ) ); - SVC_LAST_DGRAM_ADDR(sp) = (union xsockaddr *)last; + SVC_LAST_DGRAM_ADDR(sp) = SAIN( calloc( 1, sizeof(union xsockaddr) ) ); + last = SAIN( SVC_LAST_DGRAM_ADDR(sp) ); } (void) time( ¤t_time ) ; @@ -772,8 +772,8 @@ static status_e failed_service(struct service *sp, return FAILED; if( last == NULL ) { - last = SAIN6(calloc( 1, sizeof(union xsockaddr) ) ); - SVC_LAST_DGRAM_ADDR( sp ) = (union xsockaddr *)last; + SVC_LAST_DGRAM_ADDR(sp) = SAIN6(calloc( 1, sizeof(union xsockaddr) ) ); + last = SAIN6(SVC_LAST_DGRAM_ADDR(sp)); } (void) time( ¤t_time ) ;